6eab7fc47402f1ce34ed331ae80f5bcbee54da82 braney Thu Dec 16 13:30:33 2010 -0800 remove USE_PNG and GIF support #1323 diff --git src/hg/hgGene/altSplice.c src/hg/hgGene/altSplice.c index 3af6ba8..9a41cd8 100644 --- src/hg/hgGene/altSplice.c +++ src/hg/hgGene/altSplice.c @@ -85,37 +85,32 @@ int rowCount = 0; struct tempName gifTn; int pixWidth = atoi(cartUsualString(cart, "pix", DEFAULT_PIX_WIDTH )); int pixHeight = 0; struct hvGfx *hvg; int lineHeight = 0; double scale = 0; Color shadesOfGray[9]; int maxShade = ArraySize(shadesOfGray)-1; scale = (double)pixWidth/(ag->tEnd - ag->tStart); lineHeight = 2 * fontHeight +1; altGraphXLayout(ag, ag->tStart, ag->tEnd, scale, 100, &ssList, &heightHash, &rowCount); hashFree(&heightHash); pixHeight = rowCount * lineHeight; -#ifdef USE_PNG makeTempName(&gifTn, "hgc", ".png"); hvg = hvGfxOpenPng(pixWidth, pixHeight, gifTn.forCgi, FALSE); -#else -makeTempName(&gifTn, "hgc", ".gif"); -hvg = hvGfxOpenGif(pixWidth, pixHeight, gifTn.forCgi, FALSE); -#endif /* USE_PNG */ makeGrayShades(hvg, maxShade, shadesOfGray); hvGfxSetClip(hvg, 0, 0, pixWidth, pixHeight); altGraphXDrawPack(ag, ssList, hvg, 0, 0, pixWidth, lineHeight, lineHeight-1, ag->tStart, ag->tEnd, scale, font, MG_BLACK, shadesOfGray, "Dummy", NULL); hvGfxUnclip(hvg); hvGfxClose(&hvg); printf( "
\n", gifTn.forHtml, pixWidth, pixHeight); return cloneString(gifTn.forHtml); } static boolean altSpliceExists(struct section *section, struct sqlConnection *conn, char *geneId)