mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 17:59:20 -04:00
- fix build for png-1.4.1
This commit is contained in:
parent
0d20598d0c
commit
f94d7ff50c
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=251717
3 changed files with 60 additions and 0 deletions
20
graphics/povray/files/patch-png_pov.cpp
Normal file
20
graphics/povray/files/patch-png_pov.cpp
Normal file
|
@ -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");
|
20
graphics/povray36/files/patch-png_pov.cpp
Normal file
20
graphics/povray36/files/patch-png_pov.cpp
Normal file
|
@ -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");
|
20
graphics/povray37/files/patch-png_pov.cpp
Normal file
20
graphics/povray37/files/patch-png_pov.cpp
Normal file
|
@ -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");
|
Loading…
Add table
Reference in a new issue