src/hg/hgTracks/hgTracks.c 1.1650

1.1650 2010/06/05 19:29:42 braney
add support for 32-bit color (make USE_PNG have global consequence)
Index: src/hg/hgTracks/hgTracks.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/hgTracks/hgTracks.c,v
retrieving revision 1.1649
retrieving revision 1.1650
diff -b -B -U 4 -r1.1649 -r1.1650
--- src/hg/hgTracks/hgTracks.c	27 May 2010 21:13:24 -0000	1.1649
+++ src/hg/hgTracks/hgTracks.c	5 Jun 2010 19:29:42 -0000	1.1650
@@ -584,10 +584,15 @@
         hvg = hvGfxOpenPostScript(ideoWidth, ideoHeight, ideoTn->forCgi);
         }
     else
         {
+#ifdef USE_PNG
+        trashDirFile(ideoTn, "hgtIdeo", "hgtIdeo", ".png");
+        hvg = hvGfxOpenPng(ideoWidth, ideoHeight, ideoTn->forCgi, FALSE);
+#else
         trashDirFile(ideoTn, "hgtIdeo", "hgtIdeo", ".gif");
         hvg = hvGfxOpenGif(ideoWidth, ideoHeight, ideoTn->forCgi, FALSE);
+#endif
         }
     hvg->rc = revCmplDisp;
     initColors(hvg);
     ideoTrack->ixColor = hvGfxFindRgb(hvg, &ideoTrack->color);