diff options
| author | Maho Nakata <maho@FreeBSD.org> | 2010-12-25 01:45:34 +0000 |
|---|---|---|
| committer | Maho Nakata <maho@FreeBSD.org> | 2010-12-25 01:45:34 +0000 |
| commit | 8dba90b4c6ad1b92608f30afde4e6b0f25886df3 (patch) | |
| tree | 9ffd0e37c9c8ac0c70cabc7e73c4435c081ad837 /graphics/megapov/files/patch-png_pov.cpp | |
| parent | DateTime::Event::Zodiac returns the latin zodiac name or alternatively (diff) | |
Build fix.
PR: 152539
Submitted by: Andrey Zholos <aaz@althenia.net>
Diffstat (limited to 'graphics/megapov/files/patch-png_pov.cpp')
| -rw-r--r-- | graphics/megapov/files/patch-png_pov.cpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/graphics/megapov/files/patch-png_pov.cpp b/graphics/megapov/files/patch-png_pov.cpp new file mode 100644 index 000000000000..11ea26f73c34 --- /dev/null +++ b/graphics/megapov/files/patch-png_pov.cpp @@ -0,0 +1,20 @@ +--- source/png_pov.cpp.orig 2005-08-23 20:20:33.000000000 +0100 ++++ source/png_pov.cpp 2010-11-24 10:15:11.000000000 +0000 +@@ -1437,7 +1437,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"); +@@ -1470,7 +1470,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"); |
