summaryrefslogtreecommitdiff
path: root/www/webalizer/patches/patch-ae
blob: 995ebe572759d0c1e9fb4689dd4b4c81331b6d67 (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
$NetBSD: patch-ae,v 1.1 1999/08/27 09:07:48 agc Exp $

Use the correct gd calls - use PNG, not GIF

--- graphs.c	1999/08/27 08:45:49	1.1
+++ graphs.c	1999/08/27 08:47:58
@@ -285,7 +285,7 @@
    /* save gif image */
    if ((out = fopen(fname, "wb")) != NULL)
    {
-      gdImageGif(im, out);
+      gdImagePng(im, out);
       fclose(out);
    }
    /* deallocate memory */
@@ -501,7 +501,7 @@
    /* open file for writing */
    if ((out = fopen(fname, "wb")) != NULL)
    {
-      gdImageGif(im, out);
+      gdImagePng(im, out);
       fclose(out);
    }
    /* deallocate memory */
@@ -614,7 +614,7 @@
    /* save as gif file */
    if ( (out = fopen(fname, "wb")) != NULL)
    {
-      gdImageGif(im, out);
+      gdImagePng(im, out);
       fclose(out);
    }
    /* deallocate memory */
@@ -700,7 +700,7 @@
    /* save gif image */
    if ((out = fopen(fname, "wb")) != NULL)
    {
-      gdImageGif(im, out);
+      gdImagePng(im, out);
       fclose(out);
    }
    /* deallocate memory */