Index: src/hg/hgc/hgc.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/hgc/hgc.c,v
retrieving revision 1.1636
retrieving revision 1.1637
diff -b -B -U 4 -r1.1636 -r1.1637
--- src/hg/hgc/hgc.c	28 May 2010 21:32:26 -0000	1.1636
+++ src/hg/hgc/hgc.c	5 Jun 2010 19:29:44 -0000	1.1637
@@ -17980,10 +17980,15 @@
 scale = (double)pixWidth/(ag->tEnd - ag->tStart);
 lineHeight = 2 * fontHeight +1;
 altGraphXLayout(ag, ag->tStart, ag->tEnd, scale, 100, &ssList, &heightHash, &rowCount);
 pixHeight = rowCount * lineHeight;
+#ifdef USE_PNG
+trashDirFile(&gifTn, "hgc", "hgc", ".png");
+hvg = hvGfxOpenPng(pixWidth, pixHeight, gifTn.forCgi, FALSE);
+#else
 trashDirFile(&gifTn, "hgc", "hgc", ".gif");
 hvg = hvGfxOpenGif(pixWidth, pixHeight, gifTn.forCgi, FALSE);
+#endif /* USE_PNG */
 makeGrayShades(hvg);
 hvGfxSetClip(hvg, 0, 0, pixWidth, pixHeight);
 altGraphXDrawPack(ag, ssList, hvg, 0, 0, pixWidth, lineHeight, lineHeight-1,
 		  ag->tStart, ag->tEnd, scale, font, MG_BLACK, shadesOfGray, "Dummy", NULL);

