]> git.pld-linux.org Git - packages/povray.git/blob - povray-png.patch
- release 10
[packages/povray.git] / povray-png.patch
1 --- povray-3.6.1/source/png_pov.cpp.wiget       2010-01-29 21:35:24.000000000 +0100
2 +++ povray-3.6.1/source/png_pov.cpp     2010-01-29 21:35:33.000000000 +0100
3 @@ -782,7 +782,7 @@ PNG_Image::~PNG_Image()
4        {
5           // finished prematurely - trick into thinking done
6           png_ptr->num_rows = png_ptr->row_number;
7 -         png_write_finish_row(png_ptr);
8 +         png_write_row(png_ptr, row_ptr);
9        }
10  
11  #ifdef POV_COMMENTS // temporarily skip comment writing code 
12 @@ -1428,7 +1428,7 @@ void Read_Png_Image(IMAGE *Image, char *
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");
21 @@ -1461,7 +1461,7 @@ void Read_Png_Image(IMAGE *Image, char *
22                 if(r_info_ptr->valid & PNG_INFO_tRNS)
23                 {
24                         for (index = 0; index < r_info_ptr->num_trans; index++)
25 -                               cmap[index].Transmit = 255 - r_info_ptr->trans[index];
26 +                               cmap[index].Transmit = 255 - r_info_ptr->trans_alpha[index];
27                 }
28  
29                 Image->data.map_lines = (unsigned char **)POV_MALLOC(height * sizeof(unsigned char *), "PNG image");
This page took 0.120327 seconds and 3 git commands to generate.