6eab7fc47402f1ce34ed331ae80f5bcbee54da82 braney Thu Dec 16 13:30:33 2010 -0800 remove USE_PNG and GIF support #1323 diff --git src/tracks/tracks.c src/tracks/tracks.c index eeb1305..96001c6 100644 --- src/tracks/tracks.c +++ src/tracks/tracks.c @@ -1443,37 +1443,32 @@ mgSetClip(mg, xOff, y, insideWidth, rulerHeight); relNumOff = ti.chromStart - ti.relStart; if (ti.strand == '-') relNumOff = -relNumOff; mgDrawRuler(mg, xOff, y, rulerHeight, insideWidth, MG_BLACK, font, relNumOff, baseWidth); mapWriteBox(mapFile, mtRuler, xOff, y, insideWidth, rulerHeight, "", '.'); /* Finish up image map. */ mapWriteBox(mapFile, mtEnd, 0,0,0,0,"",'.'); fclose(mapFile); chmod(mapTn.forCgi, 0666); /* Save out picture and tell html file about it. */ -#ifdef USE_PNG makeTempName(&gifTn, "trk", ".png"); mgSavePng(mg, gifTn.forCgi, FALSE); -#else -makeTempName(&gifTn, "trk", ".gif"); -mgSaveGif(mg, gifTn.forCgi, FALSE); -#endif printf("\n", mapTn.forCgi); printf( "


\n", gifTn.forHtml, pixWidth, pixHeight); mgFree(&mg); chmod(gifTn.forCgi, 0666); } void makeNumText(char *name, int num, int digits) /* Make a text control filled with a number. */ { printf("\n", name, digits, num); }