summaryrefslogtreecommitdiff
path: root/graphics/gdchart/files/patch-gdchart.c
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/gdchart/files/patch-gdchart.c')
-rw-r--r--graphics/gdchart/files/patch-gdchart.c51
1 files changed, 12 insertions, 39 deletions
diff --git a/graphics/gdchart/files/patch-gdchart.c b/graphics/gdchart/files/patch-gdchart.c
index 4f105010fa87..24e151a02e6b 100644
--- a/graphics/gdchart/files/patch-gdchart.c
+++ b/graphics/gdchart/files/patch-gdchart.c
@@ -1,15 +1,6 @@
---- gdchart.c.orig Mon Apr 19 00:37:46 1999
-+++ gdchart.c Mon Jun 4 02:40:16 2001
-@@ -3,7 +3,7 @@
-
- #include <stdio.h>
- #include <stdlib.h>
--#include <values.h>
-+#include <limits.h>
- #include <math.h>
- #include <string.h>
- #include <stdarg.h>
-@@ -517,7 +517,7 @@
+--- gdchart.c.orig Sat Nov 4 02:49:46 2000
++++ gdchart.c Mon Jun 18 00:56:42 2001
+@@ -664,7 +664,7 @@
if( GDC_xaxis && xlbl )
{
@@ -18,16 +9,7 @@
for( i=0; i<num_points; ++i )
{
-@@ -727,7 +727,7 @@
- }
- else
- {
-- if( bg_img = gdImageCreateFromGif(in) ) // =
-+ if( bg_img = gdImageCreateFromPng(in) ) // =
- {
- int bgxpos = gdImageSX(bg_img)<GIFWIDTH? GIFWIDTH/2 - gdImageSX(bg_img)/2: 0,
- bgypos = gdImageSY(bg_img)<GIFHEIGHT? GIFHEIGHT/2 - gdImageSY(bg_img)/2: 0;
-@@ -1028,7 +1028,7 @@
+@@ -1196,7 +1196,7 @@
int num_xlbls = /* maximum x lables that'll fit */
/* each xlbl + avg due to num_lf_xlbls */
graphwidth /
@@ -36,21 +18,12 @@
(num_lf_xlbls*(GDC_fontc[GDC_xaxisfont_size].h-1))/num_points );
int labelcolor = GDC_XLabelColor==GDC_DFLTCOLOR?
LineColor: clrallocate( im, GDC_XLabelColor );
-@@ -1036,7 +1036,7 @@
- for( i=0; i<num_points+(do_bar?2:0); ++i )
- if( (i%(1+num_points/num_xlbls) == 0) || // # x labels are regulated
- (num_xlbls >= num_points) ||
-- GDC_xlabel_spacing == MAXSHORT )
-+ GDC_xlabel_spacing == SHRT_MAX )
+@@ -1226,7 +1226,7 @@
+ /* labeled points */
+ if( (!GDC_xlabel_ctl && ( (i%(1+num_points/num_xlbls) == 0) || // # x labels are regulated
+ num_xlbls >= num_points ||
+- GDC_xlabel_spacing == MAXSHORT ))
++ GDC_xlabel_spacing == SHRT_MAX ))
+ ||
+ (GDC_xlabel_ctl && xi>=0 && *(GDC_xlabel_ctl+xi)) )
{
- int xi = do_bar? i-1: i;
-
-@@ -1817,7 +1817,7 @@
- if( GDC_generate_gif )
- {
- fflush(gif_fptr); // clear anything buffered
-- gdImageGif( im, gif_fptr );
-+ gdImagePng( im, gif_fptr );
- }
-
- if( bg_img )