summaryrefslogtreecommitdiff
path: root/databases/rrdtool/patches/patch-ai
blob: e186cb7de779ca56778fabd90ea8f29b31789b4e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
$NetBSD: patch-ai,v 1.3 2000/12/05 11:15:42 wulf Exp $

--- src/rrd_graph.c.orig	Thu Sep 14 15:34:00 2000
+++ src/rrd_graph.c	Tue Dec  5 20:57:36 2000
@@ -6,12 +6,12 @@
 
 #include "rrd_tool.h"
 #include <gd.h>
-#include <gdlucidan10.h>
-#include <gdlucidab12.h>
+#include <gdfontt.h>
+#include <gdfonts.h>
 #include <sys/stat.h>
 
-#define SmallFont gdLucidaNormal10
-#define LargeFont gdLucidaBold12
+#define SmallFont gdFontTiny
+#define LargeFont gdFontSmall
 
 /* #define DEBUG */
 
@@ -38,7 +38,7 @@
 	    OP_MIN,OP_MAX,OP_LIMIT, OP_FLOOR, OP_CEIL,
 	    OP_UN,OP_END};
 
-enum if_en {IF_GIF=0,IF_PNG=1};
+enum if_en {IF_PNG=0};
 
 typedef struct rpnp_t {
     enum op_en   op;
@@ -340,7 +340,6 @@
 
 enum if_en if_conv(char *string){
     
-    conv_if(GIF,IF_GIF)
     conv_if(PNG,IF_PNG)
 
     return (-1);
@@ -2309,9 +2308,6 @@
     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;
@@ -2570,9 +2566,6 @@
 	}
     }
     switch (im->imgformat) {
-    case IF_GIF:
-	gdImageGif(gif, fo);    
-	break;
     case IF_PNG:
 	gdImagePng(gif, fo);    
 	break;
@@ -2687,7 +2680,7 @@
     im.prt_c = 0;
     im.gdes_c = 0;
     im.gdes = NULL;
-    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].red=-1;