aboutsummaryrefslogtreecommitdiffstats
path: root/x11
diff options
context:
space:
mode:
authordinoex <dinoex@FreeBSD.org>2010-03-29 14:18:50 +0800
committerdinoex <dinoex@FreeBSD.org>2010-03-29 14:18:50 +0800
commit3f28d97b1a7fe891394a20940a0bf76c502aede5 (patch)
treefd269f65d84094740d94e3c70778a290770696e3 /x11
parent8776dd58f32cebc143ac63728ce986ff824e3ff4 (diff)
downloadfreebsd-ports-gnome-3f28d97b1a7fe891394a20940a0bf76c502aede5.tar.gz
freebsd-ports-gnome-3f28d97b1a7fe891394a20940a0bf76c502aede5.tar.zst
freebsd-ports-gnome-3f28d97b1a7fe891394a20940a0bf76c502aede5.zip
- fix build for png-1.4.1
PR: 145157
Diffstat (limited to 'x11')
-rw-r--r--x11/kde4-workspace/files/patch-ksplash-ksplashx-qpngio.cpp33
-rw-r--r--x11/kdebase4-workspace/files/patch-ksplash-ksplashx-qpngio.cpp33
2 files changed, 66 insertions, 0 deletions
diff --git a/x11/kde4-workspace/files/patch-ksplash-ksplashx-qpngio.cpp b/x11/kde4-workspace/files/patch-ksplash-ksplashx-qpngio.cpp
new file mode 100644
index 000000000000..ec72475697a8
--- /dev/null
+++ b/x11/kde4-workspace/files/patch-ksplash-ksplashx-qpngio.cpp
@@ -0,0 +1,33 @@
+--- ksplash/ksplashx/qpngio.cpp.orig 2008-01-05 00:55:38.000000000 +0100
++++ ksplash/ksplashx/qpngio.cpp 2010-03-29 07:49:55.000000000 +0200
+@@ -151,7 +151,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);
+@@ -179,7 +179,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++;
+@@ -307,9 +307,9 @@
+ png_get_valid(png_ptr, info_ptr, PNG_INFO_tRNS)
+ if (image.depth()==32 && png_get_valid(png_ptr, info_ptr, PNG_INFO_tRNS)) {
+ QRgb trans = 0xFF000000 | qRgb(
+- (info_ptr->trans_values.red << 8 >> bit_depth)&0xff,
+- (info_ptr->trans_values.green << 8 >> bit_depth)&0xff,
+- (info_ptr->trans_values.blue << 8 >> bit_depth)&0xff);
++ (info_ptr->trans_color.red << 8 >> bit_depth)&0xff,
++ (info_ptr->trans_color.green << 8 >> bit_depth)&0xff,
++ (info_ptr->trans_color.blue << 8 >> bit_depth)&0xff);
+ for (uint y=0; y<height; y++) {
+ for (uint x=0; x<info_ptr->width; x++) {
+ if (((uint**)jt)[y][x] == trans) {
diff --git a/x11/kdebase4-workspace/files/patch-ksplash-ksplashx-qpngio.cpp b/x11/kdebase4-workspace/files/patch-ksplash-ksplashx-qpngio.cpp
new file mode 100644
index 000000000000..ec72475697a8
--- /dev/null
+++ b/x11/kdebase4-workspace/files/patch-ksplash-ksplashx-qpngio.cpp
@@ -0,0 +1,33 @@
+--- ksplash/ksplashx/qpngio.cpp.orig 2008-01-05 00:55:38.000000000 +0100
++++ ksplash/ksplashx/qpngio.cpp 2010-03-29 07:49:55.000000000 +0200
+@@ -151,7 +151,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);
+@@ -179,7 +179,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++;
+@@ -307,9 +307,9 @@
+ png_get_valid(png_ptr, info_ptr, PNG_INFO_tRNS)
+ if (image.depth()==32 && png_get_valid(png_ptr, info_ptr, PNG_INFO_tRNS)) {
+ QRgb trans = 0xFF000000 | qRgb(
+- (info_ptr->trans_values.red << 8 >> bit_depth)&0xff,
+- (info_ptr->trans_values.green << 8 >> bit_depth)&0xff,
+- (info_ptr->trans_values.blue << 8 >> bit_depth)&0xff);
++ (info_ptr->trans_color.red << 8 >> bit_depth)&0xff,
++ (info_ptr->trans_color.green << 8 >> bit_depth)&0xff,
++ (info_ptr->trans_color.blue << 8 >> bit_depth)&0xff);
+ for (uint y=0; y<height; y++) {
+ for (uint x=0; x<info_ptr->width; x++) {
+ if (((uint**)jt)[y][x] == trans) {