summaryrefslogtreecommitdiff
path: root/print/transfig/patches/patch-ad
diff options
context:
space:
mode:
Diffstat (limited to 'print/transfig/patches/patch-ad')
-rw-r--r--print/transfig/patches/patch-ad43
1 files changed, 0 insertions, 43 deletions
diff --git a/print/transfig/patches/patch-ad b/print/transfig/patches/patch-ad
deleted file mode 100644
index e13ece42e2f..00000000000
--- a/print/transfig/patches/patch-ad
+++ /dev/null
@@ -1,43 +0,0 @@
-$NetBSD: patch-ad,v 1.5 2011/01/19 19:14:15 drochner Exp $
-
-Fix build with png-1.5.
-
---- fig2dev/dev/readpng.c.orig 2010-04-21 16:02:14.000000000 +0000
-+++ fig2dev/dev/readpng.c
-@@ -39,6 +39,8 @@ read_png(file,filetype,pic,llx,lly)
- char *ptr;
- int num_palette;
- png_colorp palette;
-+ double gamma;
-+ png_color_16p file_background;
- png_color_16 png_background;
-
- *llx = *lly = 0;
-@@ -62,7 +64,7 @@ read_png(file,filetype,pic,llx,lly)
- }
-
- /* set long jump here */
-- if (setjmp(png_ptr->jmpbuf)) {
-+ if (setjmp(png_jmpbuf(png_ptr))) {
- /* if we get here there was a problem reading the file */
- png_destroy_read_struct(&png_ptr, &info_ptr, &end_info);
- return 0;
-@@ -78,14 +80,14 @@ read_png(file,filetype,pic,llx,lly)
- png_get_IHDR(png_ptr, info_ptr, &w, &h, &bit_depth, &color_type,
- &interlace_type, &compression_type, &filter_type);
-
-- if (info_ptr->valid & PNG_INFO_gAMA)
-- png_set_gamma(png_ptr, 2.2, info_ptr->gamma);
-+ if (png_get_gAMA(png_ptr, info_ptr, &gamma))
-+ png_set_gamma(png_ptr, 2.2, gamma);
- else
- png_set_gamma(png_ptr, 2.2, 0.45);
-
-- if (info_ptr->valid & PNG_INFO_bKGD)
-+ if (png_get_bKGD(png_ptr, info_ptr, &file_background))
- /* set the background to the one supplied */
-- png_set_background(png_ptr, &info_ptr->background,
-+ png_set_background(png_ptr, file_background,
- PNG_BACKGROUND_GAMMA_FILE, 1, 1.0);
- else {
- /* blend the canvas background using the alpha channel */