X-Git-Url: https://git.octo.it/?p=rrdtool.git;a=blobdiff_plain;f=src%2Frrd_graph.c;h=2e9e0091117fb4500a96b77af3cde8003ff8e5f4;hp=166d5624ccaa60c7e20d400a4e302825e1717bb9;hb=77377ff6ac43512ee216af115a3e62c57a2484a3;hpb=d252a95b51aac07904ec27dde793826894ba8ad9 diff --git a/src/rrd_graph.c b/src/rrd_graph.c index 166d562..2e9e009 100644 --- a/src/rrd_graph.c +++ b/src/rrd_graph.c @@ -181,7 +181,6 @@ enum gf_en gf_conv(char *string){ enum if_en if_conv(char *string){ - conv_if(GIF,IF_GIF) conv_if(PNG,IF_PNG) return (-1); @@ -1849,9 +1848,6 @@ int lazy_check(image_desc_t *im){ if ((fd = fopen(im->graphfile,"rb")) == NULL) return 0; /* the file does not exist */ switch (im->imgformat) { - case IF_GIF: - size = GifSize(fd,&(im->xgif),&(im->ygif)); - break; case IF_PNG: size = PngSize(fd,&(im->xgif),&(im->ygif)); break; @@ -2271,8 +2267,6 @@ graph_paint(image_desc_t *im, char ***calcpr) } } switch (im->imgformat) { - case IF_GIF: - break; case IF_PNG: gfx_render_png (canvas,im->xgif,im->ygif,im->zoom,0x0,fo); break; @@ -2444,7 +2438,7 @@ rrd_graph_init(image_desc_t *im) im->gdes_c = 0; im->gdes = NULL; im->zoom = 1.0; - im->imgformat = IF_GIF; /* we default to GIF output */ + im->imgformat = IF_PNG; /* we default to PNG output */ for(i=0;igraph_col[i]=graph_col[i];