e46073f856770bdfef4f7637eea8f9f9297aa139
chmalee
  Tue Nov 19 15:57:08 2019 -0800
Initial commit of new track type vcfPhased trio. A line with ticks, one
per haplotype per sample in the VCF, as specified by trackDb variables.

diff --git src/inc/memgfx.h src/inc/memgfx.h
index ad319cb..330df0e 100644
--- src/inc/memgfx.h
+++ src/inc/memgfx.h
@@ -18,49 +18,51 @@
 #if defined(__sgi__) || defined(__sgi) || defined(__powerpc__) || defined(sparc) || defined(__ppc__) || defined(__s390__) || defined(__s390x__)
 
 // BIGENDIAN machines:
 
 #define MEMGFX_BIGENDIAN	1
 #define MG_WHITE   0xffffffff
 #define MG_BLACK   0x000000ff
 #define MG_RED     0xff0000ff
 #define MG_GREEN   0x00ff00ff
 #define MG_BLUE    0x0000ffff
 #define MG_CYAN    0x00ffffff
 #define MG_MAGENTA 0xff00ffff
 #define MG_YELLOW  0xffff00ff
 #define MG_GRAY    0x808080ff
 
+#define MAKECOLOR_32_A(r,g,b,a) (((unsigned int)a) | ((unsigned int)b<<8) | ((unsigned int)g << 16) | ((unsigned int)r << 24))
 #define MAKECOLOR_32(r,g,b) (((unsigned int)0xff) | ((unsigned int)b<<8) | ((unsigned int)g << 16) | ((unsigned int)r << 24))
 #define COLOR_32_RED(c) (((c)>>24)&0xff)
 #define COLOR_32_GREEN(c) (((c)>>16)&0xff)
 #define COLOR_32_BLUE(c) (((c)>>8)&0xff)
 
 #else
 
 // LITTLE ENDIAN machines:
 
 #define MG_WHITE   0xffffffff
 #define MG_BLACK   0xff000000
 #define MG_RED     0xff0000ff
 #define MG_GREEN   0xff00ff00
 #define MG_BLUE    0xffff0000
 #define MG_CYAN    0xffffff00
 #define MG_MAGENTA 0xffff00ff
 #define MG_YELLOW  0xff00ffff
 #define MG_GRAY    0xff808080
 
+#define MAKECOLOR_32_A(r,g,b,a) (((unsigned int)a<<24) | ((unsigned int)b<<16) | ((unsigned int)g << 8) | (unsigned int)r)
 #define MAKECOLOR_32(r,g,b) (((unsigned int)0xff<<24) | ((unsigned int)b<<16) | ((unsigned int)g << 8) | (unsigned int)r)
 #define COLOR_32_RED(c) ((c)&0xff)
 #define COLOR_32_GREEN(c) (((c)>>8)&0xff)
 #define COLOR_32_BLUE(c) (((c)>>16)&0xff)
 #endif
 
 #define MG_WRITE_MODE_NORMAL    0
 #define MG_WRITE_MODE_MULTIPLY  (1 << 0)
 
 struct rgbColor
     {
     unsigned char r, g, b;
     };
 
 /* HSV and HSL structs can be used for changing lightness, darkness, or