6eab7fc47402f1ce34ed331ae80f5bcbee54da82 braney Thu Dec 16 13:30:33 2010 -0800 remove USE_PNG and GIF support #1323 diff --git src/lib/vPng.c src/lib/vPng.c index ff3c593..756349b 100644 --- src/lib/vPng.c +++ src/lib/vPng.c @@ -1,18 +1,17 @@ /* vPng - a virtual graphic object wrapper around an in-memory buffer destined to become a 256-color PNG file. */ -#ifdef USE_PNG #include "common.h" #include "memgfx.h" #include "vGfx.h" #include "vGfxPrivate.h" static char const rcsid[] = "$Id: vPng.c,v 1.2 2009/08/20 21:36:17 angie Exp $"; struct memPng /* Something that handles a PNG. */ { struct memGfx mg; /* Memory form. This needs to be first field. */ char *fileName; /* PNG file name. */ boolean useTransparency; /* Make background color transparent if TRUE. */ }; @@ -53,16 +52,15 @@ png->useTransparency = useTransparency; /* Fill in the mg part of this structure with normal memGfx. */ mg = mgNew(width, height); if (png->useTransparency) mgClearPixelsTrans(mg); else mgClearPixels(mg); png->mg = *mg; freez(&mg); /* We don't need this copy any more. */ vg->data = png; return vg; } -#endif//def USE_PNG