6eab7fc47402f1ce34ed331ae80f5bcbee54da82 braney Thu Dec 16 13:30:33 2010 -0800 remove USE_PNG and GIF support #1323 diff --git src/inc/vGfx.h src/inc/vGfx.h index dddd0ec..63dd864 100644 --- src/inc/vGfx.h +++ src/inc/vGfx.h @@ -81,43 +81,35 @@ /* Draw polygon, possibly filled in color. */ void (*setHint)(void *v, char *hint, char *value); /* Set hint */ char * (*getHint)(void *v, char *hint); /* Get hint */ int (*getFontPixelHeight)(void *v, void *font); /* How high in pixels is font? */ int (*getFontStringWidth)(void *v, void *font, char *string); /* How wide is a string? */ }; -#ifndef USE_PNG -struct vGfx *vgOpenGif(int width, int height, char *fileName, boolean useTransparency); -/* Open up something that will write out a GIF file upon vgClose. - * 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. */ -#else struct vGfx *vgOpenPng(int width, int height, char *fileName, boolean useTransparency); /* Open up something that will write out a PNG file upon vgClose. * 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. */ -#endif struct vGfx *vgOpenPostScript(int width, int height, char *fileName); /* Open up something that will someday be a PostScript file. */ void vgClose(struct vGfx **pVg); /* Close down virtual graphics object, and finish writing it to file. */ #define vgDot(v,x,y, color) v->dot(v->data,x,y,color) /* Draw a single pixel. Try to work at a higher level * when possible! */ #define vgGetDot(v,x,y) v->getDot(v->data,x,y) /* Fetch a single pixel. Please do not use this, this is special for * verticalText only */