src/hg/hgGenome/mainPage.c 1.29
1.29 2010/06/05 19:29:40 braney
add support for 32-bit color (make USE_PNG have global consequence)
Index: src/hg/hgGenome/mainPage.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/hgGenome/mainPage.c,v
retrieving revision 1.28
retrieving revision 1.29
diff -b -B -U 4 -r1.28 -r1.29
--- src/hg/hgGenome/mainPage.c 23 Sep 2009 18:42:17 -0000 1.28
+++ src/hg/hgGenome/mainPage.c 5 Jun 2010 19:29:40 -0000 1.29
@@ -302,10 +302,15 @@
else
{
/* Create gif file and make reference to it in html. */
+#ifdef USE_PNG
+ trashDirFile(&gifTn, "hgg", "ideo", ".png");
+ hvg = hvGfxOpenPng(gl->picWidth, gl->picHeight, gifTn.forCgi, FALSE);
+#else
trashDirFile(&gifTn, "hgg", "ideo", ".gif");
hvg = hvGfxOpenGif(gl->picWidth, gl->picHeight, gifTn.forCgi, FALSE);
+#endif /* USE_PNG */
hPrintf("<INPUT TYPE=IMAGE SRC=\"%s\" BORDER=1 WIDTH=%d HEIGHT=%d NAME=\"%s\">",
gifTn.forHtml, gl->picWidth, gl->picHeight, hggClick);
}