From 1b2e638684ebbf2b777ead2fbbb4b69f3ac00bcb Mon Sep 17 00:00:00 2001 From: mutantturkey Date: Fri, 9 Sep 2011 16:33:33 -0400 Subject: started working on Qt3, made my own folder, when work is done, I will bring it into the main branch --- .../calvin/trinity-qt3/old-patches/qt3-png14.patch | 33 ++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 arch/calvin/trinity-qt3/old-patches/qt3-png14.patch (limited to 'arch/calvin/trinity-qt3/old-patches/qt3-png14.patch') diff --git a/arch/calvin/trinity-qt3/old-patches/qt3-png14.patch b/arch/calvin/trinity-qt3/old-patches/qt3-png14.patch new file mode 100644 index 000000000..e8a194529 --- /dev/null +++ b/arch/calvin/trinity-qt3/old-patches/qt3-png14.patch @@ -0,0 +1,33 @@ +--- src/kernel/qpngio.cpp.orig 2010-01-16 22:02:41.000000000 +0100 ++++ src/kernel/qpngio.cpp 2010-01-16 22:03:56.000000000 +0100 +@@ -159,7 +159,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); +@@ -187,7 +187,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++; +@@ -321,9 +321,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; ywidth; x++) { + if (((uint**)jt)[y][x] == trans) { -- cgit v1.2.1