summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuli Suominen <ssuominen@gentoo.org>2010-03-11 20:31:04 +0000
committerSamuli Suominen <ssuominen@gentoo.org>2010-03-11 20:31:04 +0000
commitc1774ce5334dd11e729c8d6a97c357ec4d310a7a (patch)
treeca838134369ad26f416533c5200e67f2e3222227 /sci-libs/vtk/files/vtk-5.4.2-libpng14.patch
parentfix typos (diff)
downloadhistorical-c1774ce5334dd11e729c8d6a97c357ec4d310a7a.tar.gz
historical-c1774ce5334dd11e729c8d6a97c357ec4d310a7a.tar.bz2
historical-c1774ce5334dd11e729c8d6a97c357ec4d310a7a.zip
Fix building with libpng14.
Package-Manager: portage-2.2_rc67/cvs/Linux x86_64
Diffstat (limited to 'sci-libs/vtk/files/vtk-5.4.2-libpng14.patch')
-rw-r--r--sci-libs/vtk/files/vtk-5.4.2-libpng14.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/sci-libs/vtk/files/vtk-5.4.2-libpng14.patch b/sci-libs/vtk/files/vtk-5.4.2-libpng14.patch
new file mode 100644
index 000000000000..1f12ae92658d
--- /dev/null
+++ b/sci-libs/vtk/files/vtk-5.4.2-libpng14.patch
@@ -0,0 +1,20 @@
+--- IO/vtkPNGReader.cxx
++++ IO/vtkPNGReader.cxx
+@@ -116,7 +116,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
+@@ -225,7 +225,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