diff options
author | dinoex <dinoex@FreeBSD.org> | 2010-03-30 00:43:30 +0800 |
---|---|---|
committer | dinoex <dinoex@FreeBSD.org> | 2010-03-30 00:43:30 +0800 |
commit | 2e4fea94f123d076d5316ca98952e446c1894e0d (patch) | |
tree | 9f9dc20eeaf35b3b70e33ac0ec0d643aa972e384 /graphics | |
parent | ff504284f0938127a901e14984752598a17f47bf (diff) | |
download | freebsd-ports-graphics-2e4fea94f123d076d5316ca98952e446c1894e0d.tar.gz freebsd-ports-graphics-2e4fea94f123d076d5316ca98952e446c1894e0d.tar.zst freebsd-ports-graphics-2e4fea94f123d076d5316ca98952e446c1894e0d.zip |
- fix build for png-1.4.1
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/cimg/files/patch-CImg.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/graphics/cimg/files/patch-CImg.h b/graphics/cimg/files/patch-CImg.h new file mode 100644 index 00000000000..e19adbf6a4d --- /dev/null +++ b/graphics/cimg/files/patch-CImg.h @@ -0,0 +1,20 @@ +--- CImg.h.orig 2009-05-26 18:27:28.000000000 +0200 ++++ CImg.h 2010-03-29 18:04:12.000000000 +0200 +@@ -30161,7 +30161,7 @@ + png_read_info(png_ptr,info_ptr); + png_uint_32 W, H; + int bit_depth, color_type, interlace_type; +- png_get_IHDR(png_ptr,info_ptr,&W,&H,&bit_depth,&color_type,&interlace_type,int_p_NULL,int_p_NULL); ++ png_get_IHDR(png_ptr,info_ptr,&W,&H,&bit_depth,&color_type,&interlace_type,NULL,NULL); + int new_bit_depth = bit_depth; + int new_color_type = color_type; + +@@ -30172,7 +30172,7 @@ + new_bit_depth = 8; + } + if (new_color_type == PNG_COLOR_TYPE_GRAY && bit_depth < 8){ +- png_set_gray_1_2_4_to_8(png_ptr); ++ png_set_expand_gray_1_2_4_to_8(png_ptr); + new_bit_depth = 8; + } + if (png_get_valid(png_ptr, info_ptr, PNG_INFO_tRNS)) |