projects
/
rrdtool.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
remove all traces of GIF and make PNG the default
[rrdtool.git]
/
src
/
rrd_graph.c
diff --git
a/src/rrd_graph.c
b/src/rrd_graph.c
index
166d562
..
2e9e009
100644
(file)
--- 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){
enum if_en if_conv(char *string){
- conv_if(GIF,IF_GIF)
conv_if(PNG,IF_PNG)
return (-1);
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) {
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;
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) {
}
}
switch (im->imgformat) {
- case IF_GIF:
- break;
case IF_PNG:
gfx_render_png (canvas,im->xgif,im->ygif,im->zoom,0x0,fo);
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->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;i<DIM(graph_col);i++)
im->graph_col[i]=graph_col[i];
for(i=0;i<DIM(graph_col);i++)
im->graph_col[i]=graph_col[i];