diff options
author | dinoex <dinoex@FreeBSD.org> | 2010-03-30 17:59:10 +0800 |
---|---|---|
committer | dinoex <dinoex@FreeBSD.org> | 2010-03-30 17:59:10 +0800 |
commit | 4029f673ac3c8a86a2d3e8b10ce7ababb9869c7d (patch) | |
tree | ec05dd3d381d78adb9cad9795b401ee5f32f80d9 /graphics/gwenview | |
parent | cc5f84183a013d9b564e95e40d8c64c6aa44f0c7 (diff) | |
download | freebsd-ports-gnome-4029f673ac3c8a86a2d3e8b10ce7ababb9869c7d.tar.gz freebsd-ports-gnome-4029f673ac3c8a86a2d3e8b10ce7ababb9869c7d.tar.zst freebsd-ports-gnome-4029f673ac3c8a86a2d3e8b10ce7ababb9869c7d.zip |
- fix build for png-1.4.1
Diffstat (limited to 'graphics/gwenview')
-rw-r--r-- | graphics/gwenview/files/patch-src_gvcore_pngformattype.cpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/graphics/gwenview/files/patch-src_gvcore_pngformattype.cpp b/graphics/gwenview/files/patch-src_gvcore_pngformattype.cpp new file mode 100644 index 000000000000..a7c10d008337 --- /dev/null +++ b/graphics/gwenview/files/patch-src_gvcore_pngformattype.cpp @@ -0,0 +1,20 @@ +--- src/gvcore/pngformattype.cpp.orig 2007-09-15 15:46:13.000000000 +0200 ++++ src/gvcore/pngformattype.cpp 2010-03-30 10:12:59.000000000 +0200 +@@ -245,7 +245,7 @@ + image.setColor( i, qRgba(c,c,c,0xff) ); + } + if ( png_get_valid(png_ptr, info_ptr, PNG_INFO_tRNS) ) { +- const int g = info_ptr->trans_values.gray; ++ const int g = info_ptr->trans_color.gray; + if (g < ncols) { + image.setAlphaBuffer(TRUE); + image.setColor(g, image.color(g) & RGB_MASK); +@@ -273,7 +273,7 @@ + info_ptr->palette[i].red, + info_ptr->palette[i].green, + info_ptr->palette[i].blue, +- info_ptr->trans[i] ++ info_ptr->trans_alpha[i] + ) + ); + i++; |