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);
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);