freebsd-ports/graphics/digikam-kde4/files/patch-libs_3rdparty_cimg_CImg.h
Dirk Meyer 1a37c9fa02 - fix build for png-1.4.1
PR:		145159
Submitted by:	Andrei V. Lavreniyuk, fluffykhv
2010-03-29 14:54:31 +00:00

11 lines
461 B
C

--- libs/3rdparty/cimg/CImg.h.orig 2010-01-31 15:22:15.000000000 +0200
+++ libs/3rdparty/cimg/CImg.h 2010-03-29 10:42:42.741492686 +0300
@@ -29449,7 +29449,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))