From 9801cfbd9009368306f8de2efab826c1940136fe Mon Sep 17 00:00:00 2001 From: tnut Date: Thu, 30 Sep 2010 00:43:30 +0200 Subject: ajout qt3#3.3.8b-1 --- kde3/qt3/qt-3.3.8b-png14-1.patch | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 kde3/qt3/qt-3.3.8b-png14-1.patch (limited to 'kde3/qt3/qt-3.3.8b-png14-1.patch') diff --git a/kde3/qt3/qt-3.3.8b-png14-1.patch b/kde3/qt3/qt-3.3.8b-png14-1.patch new file mode 100644 index 000000000..b445c254f --- /dev/null +++ b/kde3/qt3/qt-3.3.8b-png14-1.patch @@ -0,0 +1,35 @@ +diff -Naur qt-x11-free-3.3.8b-original/src/kernel/qpngio.cpp qt-x11-free-3.3.8b/src/kernel/qpngio.cpp +--- qt-x11-free-3.3.8b-original/src/kernel/qpngio.cpp 2008-01-15 20:09:13.000000000 +0100 ++++ qt-x11-free-3.3.8b/src/kernel/qpngio.cpp 2010-09-28 11:04:28.000000000 +0200 +@@ -162,7 +162,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); +@@ -190,7 +190,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++; +@@ -324,9 +324,10 @@ + 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; ywidth; x++) { + if (((uint**)jt)[y][x] == trans) { -- cgit v1.2.3-70-g09d2