6eab7fc47402f1ce34ed331ae80f5bcbee54da82 braney Thu Dec 16 13:30:33 2010 -0800 remove USE_PNG and GIF support #1323 diff --git src/lib/pngwrite.c src/lib/pngwrite.c index 3865426..8be5299 100644 --- src/lib/pngwrite.c +++ src/lib/pngwrite.c @@ -1,21 +1,20 @@ /* pngwrite.c - write out a memGfx to a PNG file, using the reference library libpng */ /* (libpng is available from sourceforge and included in many open source distros, * has a wide-open license intended to encourage usage of the PNG format, and the lib * has been under development and testing for 14 years -- http://libpng.org/) */ -#ifdef USE_PNG #include "png.h" // MUST come before common.h, due to setjmp checking in pngconf.h #include "common.h" #include "memgfx.h" static char const rcsid[] = "$Id: pngwrite.c,v 1.4 2010/06/05 19:29:53 braney Exp $"; static void pngAbort(png_structp png, png_const_charp errorMessage) /* type png_error wrapper around errAbort */ { errAbort("%s", (char *)errorMessage); } static void pngWarn(png_structp png, png_const_charp warningMessage) /* type png_error wrapper around warn */ @@ -103,17 +102,15 @@ void mgSavePng(struct memGfx *mg, char *filename, boolean useTransparency) /* Save memory bitmap to filename as a PNG. * If useTransparency, then the first color in memgfx's colormap/palette is * assumed to be the image background color, and pixels of that color * are made transparent. */ { FILE *pngFile = mustOpen(filename, "wb"); if (!mgSaveToPng(pngFile, mg, useTransparency)) { remove(filename); errAbort("Couldn't save %s", filename); } if (fclose(pngFile) != 0) errnoAbort("fclose failed"); } - -#endif//def USE_PNG