2011-04-19 17:17:29 +02:00
|
|
|
diff -ur VTK//IO/vtkPNGReader.cxx VTK.new//IO/vtkPNGReader.cxx
|
|
|
|
--- VTK//IO/vtkPNGReader.cxx 2010-09-28 02:10:05.000000000 +0530
|
|
|
|
+++ VTK.new//IO/vtkPNGReader.cxx 2011-03-24 00:28:48.102001081 +0530
|
|
|
|
@@ -115,7 +115,7 @@
|
2010-05-08 20:18:59 +02:00
|
|
|
// minimum of a byte per pixel
|
|
|
|
if (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);
|
|
|
|
}
|
|
|
|
|
|
|
|
// add alpha if any alpha found
|
2011-04-19 17:17:29 +02:00
|
|
|
@@ -224,7 +224,7 @@
|
2010-05-08 20:18:59 +02:00
|
|
|
// minimum of a byte per pixel
|
|
|
|
if (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);
|
|
|
|
}
|
|
|
|
|
|
|
|
// add alpha if any alpha found
|