Ticket #29903: patch-src-modules-mod_png-mptr_png.cpp.diff
File patch-src-modules-mod_png-mptr_png.cpp.diff, 545 bytes (added by ulrik@…, 13 years ago) |
---|
-
src/modules/mod_png/mptr_png.cpp
old new 309 309 float b=gamma().b_U8_to_F32((unsigned char)png_ptr->palette[row_pointers[y][x]].blue); 310 310 float a=1.0; 311 311 if(info_ptr->valid & PNG_INFO_tRNS) 312 a = (float)(unsigned char)png_ptr->trans [row_pointers[y][x]]*(1.0/255.0);312 a = (float)(unsigned char)png_ptr->trans_alpha[row_pointers[y][x]]*(1.0/255.0); 313 313 surface_buffer[y][x]=Color( 314 314 r, 315 315 g,