6eab7fc47402f1ce34ed331ae80f5bcbee54da82 braney Thu Dec 16 13:30:33 2010 -0800 remove USE_PNG and GIF support #1323 diff --git src/hg/lib/hvGfx.c src/hg/lib/hvGfx.c index 10ba326..23acbca 100644 --- src/hg/lib/hvGfx.c +++ src/hg/lib/hvGfx.c @@ -9,45 +9,35 @@ static struct hvGfx *hvGfxAlloc(struct vGfx *vg) /* allocate a hvgGfx object */ { struct hvGfx *hvg; AllocVar(hvg); hvg->vg = vg; hvg->pixelBased = vg->pixelBased; hvg->width = vg->width; hvg->height = vg->height; hvg->clipMaxX = vg->width; 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)); -} - -#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)); } -#endif//def USE_PNG struct hvGfx *hvGfxOpenPostScript(int width, int height, char *fileName) /* Open up something that will someday be a PostScript file. */ { return hvGfxAlloc(vgOpenPostScript(width, height, fileName)); } void hvGfxClose(struct hvGfx **pHvg) /* Close down virtual graphics object, and finish writing it to file. */ { struct hvGfx *hvg = *pHvg; if (hvg != NULL) { vgClose(&hvg->vg); freez(pHvg);