summaryrefslogtreecommitdiff
path: root/qte/qte-2.3.8-snapshot/fix-qgfxraster.patch
diff options
context:
space:
mode:
authorChris Larson <clarson@kergoth.com>2004-11-09 00:36:47 +0000
committerChris Larson <clarson@kergoth.com>2004-11-09 00:36:47 +0000
commitf96441b9faf769c9ecdd4d338b605ea3d0cc4010 (patch)
treeedb17ec2c4ea13c5acb1c7350957a249a820e28d /qte/qte-2.3.8-snapshot/fix-qgfxraster.patch
parentb6588aa6851fb220cedc387d21c51513ef8d67f4 (diff)
Disable bk EOLN_NATIVE conversions on all files in packages FILESPATHs, to prevent it screwing up patches.
BKrev: 4190111fA4MuVozAqwE7xOSL9fr-TA
Diffstat (limited to 'qte/qte-2.3.8-snapshot/fix-qgfxraster.patch')
-rw-r--r--qte/qte-2.3.8-snapshot/fix-qgfxraster.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/qte/qte-2.3.8-snapshot/fix-qgfxraster.patch b/qte/qte-2.3.8-snapshot/fix-qgfxraster.patch
index e69de29bb2..3c107e8eae 100644
--- a/qte/qte-2.3.8-snapshot/fix-qgfxraster.patch
+++ b/qte/qte-2.3.8-snapshot/fix-qgfxraster.patch
@@ -0,0 +1,29 @@
+
+#
+# Patch managed by http://www.holgerschurig.de/patcher.html
+#
+
+--- qt-2.3.7/src/kernel/qgfxraster_qws.cpp~fix-qgfxraster
++++ qt-2.3.7/src/kernel/qgfxraster_qws.cpp
+@@ -3876,14 +3876,14 @@
+ for( loopc2=0;loopc2<frontadd;loopc2++ )
+ *(alphaptr++)=get_value_32(16,(unsigned char **)&temppos);
+
+- PackType temp2;
+- unsigned char * cp;
++ volatile PackType temp2;
++ volatile unsigned short int * cp;
+ for( loopc2=0;loopc2<count;loopc2++ ) {
+- temp2=*((PackType *)temppos);
+- cp=(unsigned char *)&temp2;
+- *(alphaptr++)=get_value_32(16,&cp);
+- *(alphaptr++)=get_value_32(16,&cp);
+- temppos += 2;
++ temp2=*reinterpret_cast<PackType *>(temppos);
++ cp=reinterpret_cast<volatile unsigned short int *>(&temp2);
++ *(alphaptr++)=qt_conv16ToRgb(*cp);
++ cp++;
++ *(alphaptr++)=qt_conv16ToRgb(*cp);
+ }
+
+ for( loopc2=0;loopc2<backadd;loopc2++ )