updated on Wed Jan 25 08:34:36 UTC 2012
[aur-mirror.git] / opensg-cvs / libpng14.patch
blobceb569ce66c3d722c7da3c5c20cbc929570b4b44
1 --- OSGPNGImageFileType.cpp 2009-12-10 21:39:56.000000000 +0100
2 +++ OSGPNGImageFileType_new.cpp 2010-02-08 20:11:22.000000000 +0100
3 @@ -216,7 +216,7 @@ bool PNGImageFileType::read(ImagePtr &OS
5 // Convert < 8 bit to 8 bit
6 if (color_type == PNG_COLOR_TYPE_GRAY && bit_depth < 8) {
7 - png_set_gray_1_2_4_to_8(png_ptr);
8 + png_set_expand_gray_1_2_4_to_8(png_ptr);
9 bit_depth = 8;
12 @@ -671,7 +671,7 @@ UInt64 PNGImageFileType::restoreData(
14 // Convert < 8 bit to 8 bit
15 if (color_type == PNG_COLOR_TYPE_GRAY && bit_depth < 8) {
16 - png_set_gray_1_2_4_to_8(png_ptr);
17 + png_set_expand_gray_1_2_4_to_8(png_ptr);
18 bit_depth = 8;