- fix build for png-1.4.1
This commit is contained in:
parent
4c845651dc
commit
2031b571c9
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=251708
1 changed files with 20 additions and 0 deletions
20
graphics/povray31/files/patch-png_pov.c
Normal file
20
graphics/povray31/files/patch-png_pov.c
Normal file
|
@ -0,0 +1,20 @@
|
|||
--- source/png_pov.c.orig 1999-05-01 15:01:24.000000000 +0200
|
||||
+++ source/png_pov.c 2010-03-29 11:17:58.000000000 +0200
|
||||
@@ -1445,7 +1445,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 **)
|
||||
@@ -1479,7 +1479,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 **)
|
Loading…
Reference in a new issue