aboutsummaryrefslogtreecommitdiffstats
path: root/graphics
diff options
context:
space:
mode:
authordinoex <dinoex@FreeBSD.org>2010-03-29 20:10:03 +0800
committerdinoex <dinoex@FreeBSD.org>2010-03-29 20:10:03 +0800
commitfd0c0170147168ad77b5dd5c17b60c481a7ec95e (patch)
tree0ae89c82c87aa1937182ddf939be7b43bd3220fc /graphics
parentb598e07cf3dc2bb5d84dc29f9d0ed3e4a6a8c392 (diff)
downloadfreebsd-ports-graphics-fd0c0170147168ad77b5dd5c17b60c481a7ec95e.tar.gz
freebsd-ports-graphics-fd0c0170147168ad77b5dd5c17b60c481a7ec95e.tar.zst
freebsd-ports-graphics-fd0c0170147168ad77b5dd5c17b60c481a7ec95e.zip
- fix build for png-1.4.1
Diffstat (limited to 'graphics')
-rw-r--r--graphics/povray/files/patch-png_pov.cpp20
-rw-r--r--graphics/povray36/files/patch-png_pov.cpp20
-rw-r--r--graphics/povray37/files/patch-png_pov.cpp20
3 files changed, 60 insertions, 0 deletions
diff --git a/graphics/povray/files/patch-png_pov.cpp b/graphics/povray/files/patch-png_pov.cpp
new file mode 100644
index 00000000000..01225b66021
--- /dev/null
+++ b/graphics/povray/files/patch-png_pov.cpp
@@ -0,0 +1,20 @@
+--- source/png_pov.cpp.orig 2004-08-03 01:11:37.000000000 +0200
++++ source/png_pov.cpp 2010-03-29 14:06:26.000000000 +0200
+@@ -1428,7 +1428,7 @@
+ if(r_info_ptr->valid & PNG_INFO_tRNS)
+ {
+ for (index = 0; index < r_info_ptr->num_trans; index++)
+- cmap[index].Transmit = 255 - r_info_ptr->trans[index];
++ cmap[index].Transmit = 255 - r_info_ptr->trans_alpha[index];
+ }
+
+ Image->data.map_lines = (unsigned char **)POV_MALLOC(height * sizeof(unsigned char *), "PNG image");
+@@ -1461,7 +1461,7 @@
+ if(r_info_ptr->valid & PNG_INFO_tRNS)
+ {
+ for (index = 0; index < r_info_ptr->num_trans; index++)
+- cmap[index].Transmit = 255 - r_info_ptr->trans[index];
++ cmap[index].Transmit = 255 - r_info_ptr->trans_alpha[index];
+ }
+
+ Image->data.map_lines = (unsigned char **)POV_MALLOC(height * sizeof(unsigned char *), "PNG image");
diff --git a/graphics/povray36/files/patch-png_pov.cpp b/graphics/povray36/files/patch-png_pov.cpp
new file mode 100644
index 00000000000..01225b66021
--- /dev/null
+++ b/graphics/povray36/files/patch-png_pov.cpp
@@ -0,0 +1,20 @@
+--- source/png_pov.cpp.orig 2004-08-03 01:11:37.000000000 +0200
++++ source/png_pov.cpp 2010-03-29 14:06:26.000000000 +0200
+@@ -1428,7 +1428,7 @@
+ if(r_info_ptr->valid & PNG_INFO_tRNS)
+ {
+ for (index = 0; index < r_info_ptr->num_trans; index++)
+- cmap[index].Transmit = 255 - r_info_ptr->trans[index];
++ cmap[index].Transmit = 255 - r_info_ptr->trans_alpha[index];
+ }
+
+ Image->data.map_lines = (unsigned char **)POV_MALLOC(height * sizeof(unsigned char *), "PNG image");
+@@ -1461,7 +1461,7 @@
+ if(r_info_ptr->valid & PNG_INFO_tRNS)
+ {
+ for (index = 0; index < r_info_ptr->num_trans; index++)
+- cmap[index].Transmit = 255 - r_info_ptr->trans[index];
++ cmap[index].Transmit = 255 - r_info_ptr->trans_alpha[index];
+ }
+
+ Image->data.map_lines = (unsigned char **)POV_MALLOC(height * sizeof(unsigned char *), "PNG image");
diff --git a/graphics/povray37/files/patch-png_pov.cpp b/graphics/povray37/files/patch-png_pov.cpp
new file mode 100644
index 00000000000..01225b66021
--- /dev/null
+++ b/graphics/povray37/files/patch-png_pov.cpp
@@ -0,0 +1,20 @@
+--- source/png_pov.cpp.orig 2004-08-03 01:11:37.000000000 +0200
++++ source/png_pov.cpp 2010-03-29 14:06:26.000000000 +0200
+@@ -1428,7 +1428,7 @@
+ if(r_info_ptr->valid & PNG_INFO_tRNS)
+ {
+ for (index = 0; index < r_info_ptr->num_trans; index++)
+- cmap[index].Transmit = 255 - r_info_ptr->trans[index];
++ cmap[index].Transmit = 255 - r_info_ptr->trans_alpha[index];
+ }
+
+ Image->data.map_lines = (unsigned char **)POV_MALLOC(height * sizeof(unsigned char *), "PNG image");
+@@ -1461,7 +1461,7 @@
+ if(r_info_ptr->valid & PNG_INFO_tRNS)
+ {
+ for (index = 0; index < r_info_ptr->num_trans; index++)
+- cmap[index].Transmit = 255 - r_info_ptr->trans[index];
++ cmap[index].Transmit = 255 - r_info_ptr->trans_alpha[index];
+ }
+
+ Image->data.map_lines = (unsigned char **)POV_MALLOC(height * sizeof(unsigned char *), "PNG image");