summaryrefslogtreecommitdiff
path: root/math/vtk/files/patch-vtkPNGReader.cxx
diff options
context:
space:
mode:
authorDirk Meyer <dinoex@FreeBSD.org>2012-06-01 05:26:28 +0000
committerDirk Meyer <dinoex@FreeBSD.org>2012-06-01 05:26:28 +0000
commit2b74a89bc8342f0b9b737c37d87737caf7b0ea1e (patch)
treec04604583d8be53b3ed7f10975be828c731f87cb /math/vtk/files/patch-vtkPNGReader.cxx
parent- Allow for larger database UIDs (diff)
- update png to 1.5.10
Notes
Notes: svn path=/head/; revision=297915
Diffstat (limited to 'math/vtk/files/patch-vtkPNGReader.cxx')
-rw-r--r--math/vtk/files/patch-vtkPNGReader.cxx20
1 files changed, 20 insertions, 0 deletions
diff --git a/math/vtk/files/patch-vtkPNGReader.cxx b/math/vtk/files/patch-vtkPNGReader.cxx
new file mode 100644
index 000000000000..4ad23950beb5
--- /dev/null
+++ b/math/vtk/files/patch-vtkPNGReader.cxx
@@ -0,0 +1,20 @@
+--- IO/vtkPNGReader.cxx.orig 2012-05-06 13:44:56.000000000 +0200
++++ IO/vtkPNGReader.cxx 2012-05-06 13:46:04.000000000 +0200
+@@ -101,7 +101,7 @@
+ // 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
+@@ -200,7 +200,7 @@
+ // 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