src/weblet/counter/counter.c 1.5

1.5 2009/08/19 23:35:58 angie
Added option to mgSaveToGif and its call stack, to use GIF's Graphic Control Extension to make memgfx's background color (0) transparent. Also corrected terminology for PNG in .h files: useAlpha -> useTransparency.
Index: src/weblet/counter/counter.c
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/weblet/counter/counter.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -b -B -U 4 -r1.4 -r1.5
--- src/weblet/counter/counter.c	8 Nov 2006 17:48:12 -0000	1.4
+++ src/weblet/counter/counter.c	19 Aug 2009 23:35:58 -0000	1.5
@@ -86,7 +86,7 @@
     mg = mgNew(1, 1);
 else
     mg = makeCountPic(count, mgMediumFont());
 fprintf(stdout, "Content-type: image/gif\n\n");
-mgSaveToGif(stdout, mg);
+mgSaveToGif(stdout, mg, FALSE);
 return 0;
 }