author | mickeyl <mickeyl> | 2005-02-19 16:07:58 (UTC) |
---|---|---|
committer | mickeyl <mickeyl> | 2005-02-19 16:07:58 (UTC) |
commit | b7bf9c7acdc010eb30bc246372efb0d1b394166a (patch) (unidiff) | |
tree | 8dde116603cd8ddf439a881fc4a1d8f413af617b /qt/qt-2.3.10.patch/fix-qgfxraster.patch | |
parent | 298d0d244ca724405ca0651775ed61a22ce7a5ae (diff) | |
download | opie-b7bf9c7acdc010eb30bc246372efb0d1b394166a.zip opie-b7bf9c7acdc010eb30bc246372efb0d1b394166a.tar.gz opie-b7bf9c7acdc010eb30bc246372efb0d1b394166a.tar.bz2 |
hello qte2.3.10 patches
bye bye old patches
Diffstat (limited to 'qt/qt-2.3.10.patch/fix-qgfxraster.patch') (more/less context) (ignore whitespace changes)
-rw-r--r-- | qt/qt-2.3.10.patch/fix-qgfxraster.patch | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/qt/qt-2.3.10.patch/fix-qgfxraster.patch b/qt/qt-2.3.10.patch/fix-qgfxraster.patch new file mode 100644 index 0000000..7bc1e2a --- a/dev/null +++ b/qt/qt-2.3.10.patch/fix-qgfxraster.patch | |||
@@ -0,0 +1,28 @@ | |||
1 | |||
2 | # | ||
3 | # Patch managed by http://www.holgerschurig.de/patcher.html | ||
4 | # | ||
5 | |||
6 | --- qt-2.3.9-snapshot-20041211/src/kernel/qgfxraster_qws.cpp~fix-qgfxraster | ||
7 | +++ qt-2.3.9-snapshot-20041211/src/kernel/qgfxraster_qws.cpp | ||
8 | @@ -4037,13 +4037,14 @@ | ||
9 | for( loopc2=0;loopc2<frontadd;loopc2++ ) | ||
10 | *(alphaptr++)=get_value_32(16,(unsigned char **)&temppos); | ||
11 | |||
12 | -PackType temp2; | ||
13 | -unsigned char * cp; | ||
14 | +volatile PackType temp2; | ||
15 | +volatile unsigned short int * cp; | ||
16 | for( loopc2=0;loopc2<count;loopc2++ ) { | ||
17 | - temp2=*((PackType *)temppos); | ||
18 | - cp=(unsigned char *)&temp2; | ||
19 | - *(alphaptr++)=get_value_32(16,&cp); | ||
20 | - *(alphaptr++)=get_value_32(16,&cp); | ||
21 | + temp2=*reinterpret_cast<PackType *>(temppos); | ||
22 | + cp=reinterpret_cast<volatile unsigned short int *>(&temp2); | ||
23 | + *(alphaptr++)=qt_conv16ToRgb(*cp); | ||
24 | + cp++; | ||
25 | + *(alphaptr++)=qt_conv16ToRgb(*cp); | ||
26 | temppos += 2; | ||
27 | } | ||
28 | |||