summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuli Suominen <ssuominen@gentoo.org>2010-03-12 08:54:20 +0000
committerSamuli Suominen <ssuominen@gentoo.org>2010-03-12 08:54:20 +0000
commit34c9d1f79962085d0fcaf7635408d25521b5680c (patch)
tree481db0c025f6fab43248bafaa49978ec383afcd3 /media-gfx/povray/files
parentPython changes added (diff)
downloadgentoo-2-34c9d1f79962085d0fcaf7635408d25521b5680c.tar.gz
gentoo-2-34c9d1f79962085d0fcaf7635408d25521b5680c.tar.bz2
gentoo-2-34c9d1f79962085d0fcaf7635408d25521b5680c.zip
Fix building with libpng14.
(Portage version: 2.2_rc67/cvs/Linux x86_64)
Diffstat (limited to 'media-gfx/povray/files')
-rw-r--r--media-gfx/povray/files/povray-3.7.0_beta32-libpng14.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/media-gfx/povray/files/povray-3.7.0_beta32-libpng14.patch b/media-gfx/povray/files/povray-3.7.0_beta32-libpng14.patch
new file mode 100644
index 000000000000..efc4ca46b10b
--- /dev/null
+++ b/media-gfx/povray/files/povray-3.7.0_beta32-libpng14.patch
@@ -0,0 +1,20 @@
+--- source/base/image/png.cpp
++++ source/base/image/png.cpp
+@@ -433,7 +433,7 @@
+ entry.alpha = 1.0f ;
+ if (has_alpha)
+ if (index < r_info_ptr->num_trans)
+- entry.alpha = (float) (r_info_ptr->trans[index]) / 255.0;
++ entry.alpha = (float) (r_info_ptr->trans_alpha[index]) / 255.0;
+ colormap.push_back (entry);
+ }
+
+@@ -459,7 +459,7 @@
+ entry.alpha = 1.0f ;
+ if (r_info_ptr->valid & PNG_INFO_tRNS)
+ if (index < r_info_ptr->num_trans)
+- entry.alpha = (float) (r_info_ptr->trans[index]) / 255.0;
++ entry.alpha = (float) (r_info_ptr->trans_alpha[index]) / 255.0;
+ colormap.push_back (entry);
+ }
+