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()
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);
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)
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];
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)
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];
29 Image->data.map_lines = (unsigned char **)POV_MALLOC(height * sizeof(unsigned char *), "PNG image");