pkgsrc/graphics/fly/patches/patch-ab
agc 811bdb55f5 Add support for gd-1.6.3, and associated GIF -> PNG migration. Convert
GIF images to PNG ones using netpbm at installation time. Update the
HTML documentation to use the generated PNG graphics.

Update to version 1.6.5 of fly whilst we're here.
Version: 1.6.5 15th January 1999
       Minor bug fix.  Seg fault on garbage input file or empty input
       file.  Thanks to Anatoly A.  Orehovsky <tolik@mpeks.tomsk.su>
       for the report and code fix.

Version: 1.6.4 24th November 1998
       Minor bug fixes.  Removing warnings and fixing minor errors in
       some print statements.  Thanks to Bernie Kirby
       <bernie@iii.rmit.edu.au> for reporting the warnings.

Version: 1.6.3 22nd October 1998
       Minor additional feature:  any pair of diametrically opposite
       vertices in any order will now be accepted for rect and frect.

Version: 1.6.2 25th September 1998
       Minor bug fix - some return codes in case of fatal errors were
                 0 when they should have been 1.
       Addition of code for win32 binmode problem.  (thanks to Shoji
                 Mori <mori@moriken.com>)
1999-08-27 10:11:01 +00:00

60 lines
1.4 KiB
Text

$NetBSD: patch-ab,v 1.1 1999/08/27 10:11:02 agc Exp $
Changes for gd-1.6.3 package (GIF -> PNG)
--- fly.c 1999/08/27 09:16:41 1.1
+++ fly.c 1999/08/27 09:17:03
@@ -661,7 +661,7 @@
}
else
{
- brush = gdImageCreateFromGif(brushfile);
+ brush = gdImageCreateFromPng(brushfile);
gdImageSetBrush(img,brush);
brush_on = 1;
if (!quiet) fprintf(verbose_out,"## Brush Set ## to: %s\n",s);
@@ -703,7 +703,7 @@
}
else
{
- tile = gdImageCreateFromGif(tilefile);
+ tile = gdImageCreateFromPng(tilefile);
gdImageSetTile(img,tile);
tile_on = TRUE;
if (!quiet) fprintf(verbose_out,"## Tile Set ## to: %s\n",s);
@@ -767,7 +767,7 @@
break;
case END:
- gdImageGif(img,outfile);
+ gdImagePng(img,outfile);
fclose(outfile);
gdImageDestroy(img);
written_out = TRUE;
@@ -788,7 +788,7 @@
/* Write the gd to the GIF output file and exit */
FINISH: if(!written_out && img) {
- gdImageGif(img,outfile);
+ gdImagePng(img,outfile);
fclose(outfile);
gdImageDestroy(img);
}
@@ -1202,7 +1202,7 @@
filename);
exit(1);
}
- img_file = gdImageCreateFromGif(img_to_copy);
+ img_file = gdImageCreateFromPng(img_to_copy);
fclose(img_to_copy);
if( resize == 1 )
@@ -1357,7 +1357,7 @@
else {
if(!quiet) fprintf(verbose_out,"Creating image from existing gif <%s>\n",
filename);
- image = gdImageCreateFromGif(in);
+ image = gdImageCreateFromPng(in);
fclose(in);
}
}