1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-22 08:58:47 +00:00

- fix build for png-1.4.1

This commit is contained in:
Dirk Meyer 2010-03-31 11:37:17 +00:00
parent 8b5d6d26e2
commit 5752316c18
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=251887

View File

@ -0,0 +1,11 @@
--- src/modules/mod_png/mptr_png.cpp.orig 2009-10-12 11:33:44.000000000 +0200
+++ src/modules/mod_png/mptr_png.cpp 2010-03-29 19:33:11.000000000 +0200
@@ -309,7 +309,7 @@
float b=gamma().b_U8_to_F32((unsigned char)png_ptr->palette[row_pointers[y][x]].blue);
float a=1.0;
if(info_ptr->valid & PNG_INFO_tRNS)
- a = (float)(unsigned char)png_ptr->trans[row_pointers[y][x]]*(1.0/255.0);
+ a = (float)(unsigned char)png_ptr->trans_alpha[row_pointers[y][x]]*(1.0/255.0);
surface_buffer[y][x]=Color(
r,
g,