$NetBSD: patch-ai,v 1.2 2000/05/07 12:50:52 wulf Exp $

--- src/rrd_graph.c.orig	Tue May  2 04:51:47 2000
+++ src/rrd_graph.c	Wed May  3 21:04:46 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_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);
@@ -2291,9 +2290,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;
@@ -2552,9 +2548,6 @@
 	}
     }
     switch (im->imgformat) {
-    case IF_GIF:
-	gdImageGif(gif, fo);    
-	break;
     case IF_PNG:
 	gdImagePng(gif, fo);    
 	break;
@@ -2669,7 +2662,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;
