src/hg/lib/hvGfx.c 1.6
1.6 2010/06/05 19:29:47 braney
add support for 32-bit color (make USE_PNG have global consequence)
Index: src/hg/lib/hvGfx.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/lib/hvGfx.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -b -B -U 4 -r1.5 -r1.6
--- src/hg/lib/hvGfx.c 19 Aug 2009 22:28:37 -0000 1.5
+++ src/hg/lib/hvGfx.c 5 Jun 2010 19:29:47 -0000 1.6
@@ -20,15 +20,17 @@
hvg->clipMaxY = vg->height;
return hvg;
}
+#ifndef USE_PNG
struct hvGfx *hvGfxOpenGif(int width, int height, char *fileName, boolean useTransparency)
/* Open up something that we'll write out as a gif someday. */
{
return hvGfxAlloc(vgOpenGif(width, height, fileName, useTransparency));
}
-#ifdef USE_PNG
+#else
+
struct hvGfx *hvGfxOpenPng(int width, int height, char *fileName, boolean useTransparency)
/* Open up something that we'll write out as a PNG someday. */
{
return hvGfxAlloc(vgOpenPng(width, height, fileName, useTransparency));