diff options
author | Dirk Meyer <dinoex@FreeBSD.org> | 2010-03-29 12:10:03 +0000 |
---|---|---|
committer | Dirk Meyer <dinoex@FreeBSD.org> | 2010-03-29 12:10:03 +0000 |
commit | f94d7ff50cdc008cde77be9ecbe6ff3e8d5a4643 (patch) | |
tree | b2ad3adfa9446cdbbcfcb20b645058873e03750f /graphics/povray37 | |
parent | 0d20598d0cba437858e659c595841bba3169d41b (diff) | |
download | ports-f94d7ff50cdc008cde77be9ecbe6ff3e8d5a4643.tar.gz ports-f94d7ff50cdc008cde77be9ecbe6ff3e8d5a4643.zip |
Notes
Diffstat (limited to 'graphics/povray37')
-rw-r--r-- | graphics/povray37/files/patch-png_pov.cpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/graphics/povray37/files/patch-png_pov.cpp b/graphics/povray37/files/patch-png_pov.cpp new file mode 100644 index 000000000000..01225b66021e --- /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"); |