Line 0
Link Here
|
|
|
1 |
--- source/png_pov.cpp.orig 2005-08-23 20:20:33.000000000 +0100 |
2 |
+++ source/png_pov.cpp 2010-11-24 10:15:11.000000000 +0000 |
3 |
@@ -1437,7 +1437,7 @@ |
4 |
if(r_info_ptr->valid & PNG_INFO_tRNS) |
5 |
{ |
6 |
for (index = 0; index < r_info_ptr->num_trans; index++) |
7 |
- cmap[index].Transmit = 255 - r_info_ptr->trans[index]; |
8 |
+ cmap[index].Transmit = 255 - r_info_ptr->trans_alpha[index]; |
9 |
} |
10 |
|
11 |
Image->data.map_lines = (unsigned char **)POV_MALLOC(height * sizeof(unsigned char *), "PNG image"); |
12 |
@@ -1470,7 +1470,7 @@ |
13 |
if(r_info_ptr->valid & PNG_INFO_tRNS) |
14 |
{ |
15 |
for (index = 0; index < r_info_ptr->num_trans; index++) |
16 |
- cmap[index].Transmit = 255 - r_info_ptr->trans[index]; |
17 |
+ cmap[index].Transmit = 255 - r_info_ptr->trans_alpha[index]; |
18 |
} |
19 |
|
20 |
Image->data.map_lines = (unsigned char **)POV_MALLOC(height * sizeof(unsigned char *), "PNG image"); |