6eab7fc47402f1ce34ed331ae80f5bcbee54da82
braney
Thu Dec 16 13:30:33 2010 -0800
remove USE_PNG and GIF support #1323
diff --git src/hg/hgc/hgc.c src/hg/hgc/hgc.c
index e35657e..8cb2586 100644
--- src/hg/hgc/hgc.c
+++ src/hg/hgc/hgc.c
@@ -18266,37 +18266,32 @@
int fontHeight = mgFontLineHeight(font);
struct spaceSaver *ssList = NULL;
struct hash *heightHash = NULL;
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;
scale = (double)pixWidth/(ag->tEnd - ag->tStart);
lineHeight = 2 * fontHeight +1;
altGraphXLayout(ag, ag->tStart, ag->tEnd, scale, 100, &ssList, &heightHash, &rowCount);
pixHeight = rowCount * lineHeight;
-#ifdef USE_PNG
trashDirFile(&gifTn, "hgc", "hgc", ".png");
hvg = hvGfxOpenPng(pixWidth, pixHeight, gifTn.forCgi, FALSE);
-#else
-trashDirFile(&gifTn, "hgc", "hgc", ".gif");
-hvg = hvGfxOpenGif(pixWidth, pixHeight, gifTn.forCgi, FALSE);
-#endif /* USE_PNG */
makeGrayShades(hvg);
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);
}
char *agXStringForEdge(struct altGraphX *ag, int i)
/* classify an edge as intron or exon */
{