diff options
author | wiz <wiz@pkgsrc.org> | 2010-06-18 06:55:43 +0000 |
---|---|---|
committer | wiz <wiz@pkgsrc.org> | 2010-06-18 06:55:43 +0000 |
commit | 2180abc9a9a80c4e4fe839e8dcdd3bff253aa82e (patch) | |
tree | 956734e2e15ac97694d58c055e62e9b374c822da /graphics/povray/patches | |
parent | fb46c8c4e41a017a4122baea55f0566f9afbbcad (diff) | |
download | pkgsrc-2180abc9a9a80c4e4fe839e8dcdd3bff253aa82e.tar.gz |
Fix build with png-1.4.x. Addresses PR 43486.
Diffstat (limited to 'graphics/povray/patches')
-rw-r--r-- | graphics/povray/patches/patch-af | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/graphics/povray/patches/patch-af b/graphics/povray/patches/patch-af index 60f38621a15..53cae66f05e 100644 --- a/graphics/povray/patches/patch-af +++ b/graphics/povray/patches/patch-af @@ -1,4 +1,4 @@ -$NetBSD: patch-af,v 1.1 2006/05/06 11:59:49 wiz Exp $ +$NetBSD: patch-af,v 1.2 2010/06/18 06:55:44 wiz Exp $ --- source/png_pov.cpp.orig 2004-08-02 23:11:37.000000000 +0000 +++ source/png_pov.cpp @@ -20,3 +20,21 @@ $NetBSD: patch-af,v 1.1 2006/05/06 11:59:49 wiz Exp $ } #ifdef POV_COMMENTS // temporarily skip comment writing code +@@ -1428,7 +1424,7 @@ void Read_Png_Image(IMAGE *Image, char * + 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 +1457,7 @@ void Read_Png_Image(IMAGE *Image, char * + 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"); |