author | zecke <zecke> | 2004-09-12 15:44:52 (UTC) |
---|---|---|
committer | zecke <zecke> | 2004-09-12 15:44:52 (UTC) |
commit | 8f22819ca6e53edaa1b80c25d34e7df5e60981a4 (patch) (unidiff) | |
tree | 896a016609668a10c650f9f0139b46822c4454a9 | |
parent | 1ecaa166126baf48c1ed280963b421d70e1afcda (diff) | |
download | opie-8f22819ca6e53edaa1b80c25d34e7df5e60981a4.zip opie-8f22819ca6e53edaa1b80c25d34e7df5e60981a4.tar.gz opie-8f22819ca6e53edaa1b80c25d34e7df5e60981a4.tar.bz2 |
Apply patch from "Tony" for #1395 to fix building of QVNC for gcc3.4
Also remove the diffs for 'include/' files because they're only symlinks
-rw-r--r-- | qt/qt-2.3.7.patch/qte237-all.patch | 104 | ||||
-rw-r--r-- | qt/qt-2.3.7.patch/qte237-gcc34.patch | 186 |
2 files changed, 226 insertions, 64 deletions
diff --git a/qt/qt-2.3.7.patch/qte237-all.patch b/qt/qt-2.3.7.patch/qte237-all.patch index 6f94211..ea03446 100644 --- a/qt/qt-2.3.7.patch/qte237-all.patch +++ b/qt/qt-2.3.7.patch/qte237-all.patch | |||
@@ -1284,64 +1284,168 @@ diff -ur qt-2.3.7-old/src/widgets/qscrollview.cpp qt-2.3.7/src/widgets/qscrollvi | |||
1284 | @@ -837,12 +848,12 @@ | 1284 | @@ -837,12 +848,12 @@ |
1285 | } | 1285 | } |
1286 | if ( d->corner ) { | 1286 | if ( d->corner ) { |
1287 | if ( style() == WindowsStyle ) | 1287 | if ( style() == WindowsStyle ) |
1288 | - d->corner->setGeometry( w-vsbExt-fw, | 1288 | - d->corner->setGeometry( w-vsbExt-fw, |
1289 | + d->corner->setGeometry( xpos, | 1289 | + d->corner->setGeometry( xpos, |
1290 | h-hsbExt-fw, | 1290 | h-hsbExt-fw, |
1291 | vsbExt, | 1291 | vsbExt, |
1292 | hsbExt ); | 1292 | hsbExt ); |
1293 | else | 1293 | else |
1294 | - d->corner->setGeometry( w-vsbExt, | 1294 | - d->corner->setGeometry( w-vsbExt, |
1295 | + d->corner->setGeometry( xpos, | 1295 | + d->corner->setGeometry( xpos, |
1296 | h-hsbExt, | 1296 | h-hsbExt, |
1297 | vsbExt, | 1297 | vsbExt, |
1298 | hsbExt ); | 1298 | hsbExt ); |
1299 | @@ -1266,6 +1277,9 @@ | 1299 | @@ -1266,6 +1277,9 @@ |
1300 | case QEvent::LayoutHint: | 1300 | case QEvent::LayoutHint: |
1301 | d->autoResizeHint(this); | 1301 | d->autoResizeHint(this); |
1302 | break; | 1302 | break; |
1303 | +case QEvent::WindowActivate: | 1303 | +case QEvent::WindowActivate: |
1304 | +case QEvent::WindowDeactivate: | 1304 | +case QEvent::WindowDeactivate: |
1305 | + return TRUE; | 1305 | + return TRUE; |
1306 | default: | 1306 | default: |
1307 | break; | 1307 | break; |
1308 | } | 1308 | } |
1309 | @@ -1675,7 +1689,7 @@ | 1309 | @@ -1675,7 +1689,7 @@ |
1310 | } | 1310 | } |
1311 | 1311 | ||
1312 | /*! | 1312 | /*! |
1313 | - Scrolls the content by \a x to the left and \a y upwards. | 1313 | - Scrolls the content by \a x to the left and \a y upwards. |
1314 | + Scrolls the content by \a dx to the left and \a dy upwards. | 1314 | + Scrolls the content by \a dx to the left and \a dy upwards. |
1315 | */ | 1315 | */ |
1316 | void QScrollView::scrollBy( int dx, int dy ) | 1316 | void QScrollView::scrollBy( int dx, int dy ) |
1317 | { | 1317 | { |
1318 | diff -ur qt-2.3.7-old/src/widgets/qtoolbutton.cpp qt-2.3.7/src/widgets/qtoolbutton.cpp | 1318 | diff -ur qt-2.3.7-old/src/widgets/qtoolbutton.cpp qt-2.3.7/src/widgets/qtoolbutton.cpp |
1319 | --- qt-2.3.7-old/src/widgets/qtoolbutton.cpp2004-07-23 15:22:56.000000000 +0200 | 1319 | --- qt-2.3.7-old/src/widgets/qtoolbutton.cpp2004-07-23 15:22:56.000000000 +0200 |
1320 | +++ qt-2.3.7/src/widgets/qtoolbutton.cpp2004-07-23 15:38:13.000000000 +0200 | 1320 | +++ qt-2.3.7/src/widgets/qtoolbutton.cpp2004-07-23 15:38:13.000000000 +0200 |
1321 | @@ -230,7 +230,7 @@ | 1321 | @@ -230,7 +230,7 @@ |
1322 | else | 1322 | else |
1323 | QToolTip::add( this, textLabel ); | 1323 | QToolTip::add( this, textLabel ); |
1324 | } | 1324 | } |
1325 | -#endif | 1325 | -#endif |
1326 | +#endif | 1326 | +#endif |
1327 | } | 1327 | } |
1328 | 1328 | ||
1329 | 1329 | ||
1330 | @@ -324,12 +324,12 @@ | 1330 | @@ -324,12 +324,12 @@ |
1331 | QPixmap pm = iconSet(TRUE).pixmap(QIconSet::Large, QIconSet::Normal); | 1331 | QPixmap pm = iconSet(TRUE).pixmap(QIconSet::Large, QIconSet::Normal); |
1332 | w = pm.width(); | 1332 | w = pm.width(); |
1333 | h = pm.height(); | 1333 | h = pm.height(); |
1334 | -if ( w < 32 ) | 1334 | -if ( w < 32 ) |
1335 | - w = 32; | 1335 | - w = 32; |
1336 | -if ( h < 32 ) | 1336 | -if ( h < 32 ) |
1337 | - h = 32; | 1337 | - h = 32; |
1338 | +if ( w < 24 ) | 1338 | +if ( w < 24 ) |
1339 | + w = 24; | 1339 | + w = 24; |
1340 | +if ( h < 24 ) | 1340 | +if ( h < 24 ) |
1341 | + h = 24; | 1341 | + h = 24; |
1342 | } else { | 1342 | } else { |
1343 | -w = h = 16; | 1343 | -w = h = 16; |
1344 | +w = h = 14; | 1344 | +w = h = 14; |
1345 | QPixmap pm = iconSet(TRUE).pixmap(QIconSet::Small, QIconSet::Normal); | 1345 | QPixmap pm = iconSet(TRUE).pixmap(QIconSet::Small, QIconSet::Normal); |
1346 | w = pm.width(); | 1346 | w = pm.width(); |
1347 | h = pm.height(); | 1347 | h = pm.height(); |
1348 | diff -ur qt-2.3.7_old/src/kernel/qgfxvnc_qws.cpp qt-2.3.7/src/kernel/qgfxvnc_qws.cpp | ||
1349 | --- qt-2.3.7_old/src/kernel/qgfxvnc_qws.cpp2004-09-10 21:08:04.000000000 +0200 | ||
1350 | +++ qt-2.3.7/src/kernel/qgfxvnc_qws.cpp2004-09-10 21:10:54.000000000 +0200 | ||
1351 | @@ -971,7 +971,7 @@ | ||
1352 | void QGfxVNC<depth,type>::drawPoint( int x, int y ) | ||
1353 | { | ||
1354 | QWSDisplay::grab( TRUE ); | ||
1355 | - qvnc_screen->setDirty( QRect( x+xoffs, y+yoffs, 1, 1 ) & clipbounds ); | ||
1356 | + qvnc_screen->setDirty( QRect( x+this->xoffs, y+this->yoffs, 1, 1 ) & this->clipbounds ); | ||
1357 | QGfxRaster<depth,type>::drawPoint( x, y ); | ||
1358 | QWSDisplay::ungrab(); | ||
1359 | } | ||
1360 | @@ -981,8 +981,8 @@ | ||
1361 | { | ||
1362 | QWSDisplay::grab( TRUE ); | ||
1363 | QRect r = pa.boundingRect(); | ||
1364 | - r.moveBy( xoffs, yoffs ); | ||
1365 | - qvnc_screen->setDirty( r & clipbounds ); | ||
1366 | + r.moveBy( this->xoffs, this->yoffs ); | ||
1367 | + qvnc_screen->setDirty( r & this->clipbounds ); | ||
1368 | QGfxRaster<depth,type>::drawPoints( pa, x, y ); | ||
1369 | QWSDisplay::ungrab(); | ||
1370 | } | ||
1371 | @@ -992,9 +992,9 @@ | ||
1372 | { | ||
1373 | QWSDisplay::grab( TRUE ); | ||
1374 | QRect r; | ||
1375 | - r.setCoords( x1+xoffs, y1+yoffs, x2+xoffs, y2+yoffs ); | ||
1376 | + r.setCoords( x1+this->xoffs, y1+this->yoffs, x2+this->xoffs, y2+this->yoffs ); | ||
1377 | r = r.normalize(); | ||
1378 | - qvnc_screen->setDirty( r & clipbounds ); | ||
1379 | + qvnc_screen->setDirty( r & this->clipbounds ); | ||
1380 | QGfxRaster<depth,type>::drawLine( x1, y1, x2, y2 ); | ||
1381 | QWSDisplay::ungrab(); | ||
1382 | } | ||
1383 | @@ -1003,7 +1003,7 @@ | ||
1384 | void QGfxVNC<depth,type>::fillRect( int x,int y,int w,int h ) | ||
1385 | { | ||
1386 | QWSDisplay::grab( TRUE ); | ||
1387 | - qvnc_screen->setDirty( QRect( x+xoffs, y+yoffs, w, h ) & clipbounds ); | ||
1388 | + qvnc_screen->setDirty( QRect( x+this->xoffs, y+this->yoffs, w, h ) & this->clipbounds ); | ||
1389 | QGfxRaster<depth,type>::fillRect( x, y, w, h ); | ||
1390 | QWSDisplay::ungrab(); | ||
1391 | } | ||
1392 | @@ -1013,8 +1013,8 @@ | ||
1393 | { | ||
1394 | QWSDisplay::grab( TRUE ); | ||
1395 | QRect r = pa.boundingRect(); | ||
1396 | - r.moveBy( xoffs, yoffs ); | ||
1397 | - qvnc_screen->setDirty( r & clipbounds ); | ||
1398 | + r.moveBy( this->xoffs, this->yoffs ); | ||
1399 | + qvnc_screen->setDirty( r & this->clipbounds ); | ||
1400 | QGfxRaster<depth,type>::drawPolyline( pa, x, y ); | ||
1401 | QWSDisplay::ungrab(); | ||
1402 | } | ||
1403 | @@ -1024,8 +1024,8 @@ | ||
1404 | { | ||
1405 | QWSDisplay::grab( TRUE ); | ||
1406 | QRect r = pa.boundingRect(); | ||
1407 | - r.moveBy( xoffs, yoffs ); | ||
1408 | - qvnc_screen->setDirty( r & clipbounds ); | ||
1409 | + r.moveBy( this->xoffs, this->yoffs ); | ||
1410 | + qvnc_screen->setDirty( r & this->clipbounds ); | ||
1411 | QGfxRaster<depth,type>::drawPolygon( pa, w, x, y ); | ||
1412 | QWSDisplay::ungrab(); | ||
1413 | } | ||
1414 | @@ -1034,7 +1034,7 @@ | ||
1415 | void QGfxVNC<depth,type>::blt( int x,int y,int w,int h, int sx, int sy ) | ||
1416 | { | ||
1417 | QWSDisplay::grab( TRUE ); | ||
1418 | - qvnc_screen->setDirty( QRect( x+xoffs, y+yoffs, w, h ) & clipbounds ); | ||
1419 | + qvnc_screen->setDirty( QRect( x+this->xoffs, y+this->yoffs, w, h ) & this->clipbounds ); | ||
1420 | QGfxRaster<depth,type>::blt( x, y, w, h, sx, sy ); | ||
1421 | QWSDisplay::ungrab(); | ||
1422 | } | ||
1423 | @@ -1045,8 +1045,8 @@ | ||
1424 | QWSDisplay::grab( TRUE ); | ||
1425 | int dy = sy - y; | ||
1426 | int dx = sx - x; | ||
1427 | - qvnc_screen->setDirty( QRect(QMIN(x,sx) + xoffs, QMIN(y,sy) + yoffs, | ||
1428 | - w+abs(dx), h+abs(dy)) & clipbounds ); | ||
1429 | + qvnc_screen->setDirty( QRect(QMIN(x,sx) + this->xoffs, QMIN(y,sy) + this->yoffs, | ||
1430 | + w+abs(dx), h+abs(dy)) & this->clipbounds ); | ||
1431 | QGfxRaster<depth,type>::scroll( x, y, w, h, sx, sy ); | ||
1432 | QWSDisplay::ungrab(); | ||
1433 | } | ||
1434 | @@ -1056,7 +1056,7 @@ | ||
1435 | void QGfxVNC<depth,type>::stretchBlt( int x,int y,int w,int h,int sx,int sy ) | ||
1436 | { | ||
1437 | QWSDisplay::grab( TRUE ); | ||
1438 | - qvnc_screen->setDirty( QRect( x + xoffs, y + yoffs, w, h) & clipbounds ); | ||
1439 | + qvnc_screen->setDirty( QRect( x + this->xoffs, y + this->yoffs, w, h) & this->clipbounds ); | ||
1440 | QGfxRaster<depth,type>::stretchBlt( x, y, w, h, sx, sy ); | ||
1441 | QWSDisplay::ungrab(); | ||
1442 | } | ||
1443 | @@ -1066,7 +1066,7 @@ | ||
1444 | void QGfxVNC<depth,type>::tiledBlt( int x,int y,int w,int h ) | ||
1445 | { | ||
1446 | QWSDisplay::grab( TRUE ); | ||
1447 | - qvnc_screen->setDirty( QRect(x + xoffs, y + yoffs, w, h) & clipbounds ); | ||
1448 | + qvnc_screen->setDirty( QRect(x + this->xoffs, y + this->yoffs, w, h) & this->clipbounds ); | ||
1449 | QGfxRaster<depth,type>::tiledBlt( x, y, w, h ); | ||
1450 | QWSDisplay::ungrab(); | ||
1451 | } | ||
diff --git a/qt/qt-2.3.7.patch/qte237-gcc34.patch b/qt/qt-2.3.7.patch/qte237-gcc34.patch index 856028d..9a0f28c 100644 --- a/qt/qt-2.3.7.patch/qte237-gcc34.patch +++ b/qt/qt-2.3.7.patch/qte237-gcc34.patch | |||
@@ -1,111 +1,67 @@ | |||
1 | diff -ur qt-2.3.7_clean/include/qcstring.h qt-2.3.7/include/qcstring.h | 1 | diff -ur qt-2.3.7_old/src/kernel/qgfxtransformed_qws.cpp qt-2.3.7/src/kernel/qgfxtransformed_qws.cpp |
2 | --- qt-2.3.7_clean/include/qcstring.h2004-06-04 02:17:53.000000000 +0200 | 2 | --- qt-2.3.7_old/src/kernel/qgfxtransformed_qws.cpp2004-09-10 21:08:04.000000000 +0200 |
3 | +++ qt-2.3.7/include/qcstring.h2004-06-04 02:24:25.000000000 +0200 | 3 | +++ qt-2.3.7/src/kernel/qgfxtransformed_qws.cpp2004-09-10 21:08:42.000000000 +0200 |
4 | @@ -119,7 +119,7 @@ | ||
5 | // We want to keep source compatibility for 2.x | ||
6 | // ### TODO for 4.0: completely remove these and the cstr* functions | ||
7 | |||
8 | -#if !defined(QT_GENUINE_STR) | ||
9 | +#if 0 | ||
10 | |||
11 | #undefstrlen | ||
12 | #define strlen qstrlen | ||
13 | diff -ur qt-2.3.7_clean/include/qglobal.h qt-2.3.7/include/qglobal.h | ||
14 | --- qt-2.3.7_clean/include/qglobal.h2004-06-04 02:17:53.000000000 +0200 | ||
15 | +++ qt-2.3.7/include/qglobal.h2004-06-04 02:29:41.000000000 +0200 | ||
16 | @@ -207,8 +207,16 @@ | ||
17 | #if __GNUC__ == 2 && __GNUC_MINOR__ == 96 | ||
18 | #define Q_FP_CCAST_BROKEN | ||
19 | #endif | ||
20 | +/* ARM gcc pads structs to 32 bits, even when they contain a single | ||
21 | + char, or short. We tell gcc to pack QChars to 16 bits, to avoid | ||
22 | + QString bloat. However, gcc 3.4 doesn't allow us to create references to | ||
23 | + members of a packed struct. (Pointers are OK, because then you | ||
24 | + supposedly know what you are doing.) */ | ||
25 | #if (defined(__arm__) || defined(__ARMEL__)) && !defined(QT_MOC_CPP) | ||
26 | #define Q_PACKED __attribute__ ((packed)) | ||
27 | +# if __GNUC__ == 3 && __GNUC_MINOR__ >= 4 | ||
28 | +# define Q_NO_PACKED_REFERENCE | ||
29 | +# endif | ||
30 | #endif | ||
31 | #elif defined(__xlC__) | ||
32 | #define _CC_XLC_ | ||
33 | diff -ur qt-2.3.7_clean/include/qsortedlist.h qt-2.3.7/include/qsortedlist.h | ||
34 | --- qt-2.3.7_clean/include/qsortedlist.h2004-06-04 02:17:53.000000000 +0200 | ||
35 | +++ qt-2.3.7/include/qsortedlist.h2004-06-04 02:24:25.000000000 +0200 | ||
36 | @@ -48,7 +48,7 @@ | ||
37 | public: | ||
38 | QSortedList() {} | ||
39 | QSortedList( const QSortedList<type> &l ) : QList<type>(l) {} | ||
40 | - ~QSortedList() { clear(); } | ||
41 | + ~QSortedList() { this->clear(); } | ||
42 | QSortedList<type> &operator=(const QSortedList<type> &l) | ||
43 | { return (QSortedList<type>&)QList<type>::operator=(l); } | ||
44 | |||
45 | diff -ur qt-2.3.7_clean/src/kernel/qgfxtransformed_qws.cpp qt-2.3.7/src/kernel/qgfxtransformed_qws.cpp | ||
46 | --- qt-2.3.7_clean/src/kernel/qgfxtransformed_qws.cpp2004-06-04 02:17:53.000000000 +0200 | ||
47 | +++ qt-2.3.7/src/kernel/qgfxtransformed_qws.cpp2004-06-04 02:24:25.000000000 +0200 | ||
48 | @@ -671,11 +671,11 @@ | 4 | @@ -671,11 +671,11 @@ |
49 | inline int tx( int x, int y ) { | 5 | inline int tx( int x, int y ) { |
50 | switch ( qt_trans_screen->transformation() ) { | 6 | switch ( qt_trans_screen->transformation() ) { |
51 | case QTransformedScreen::Rot90: | 7 | case QTransformedScreen::Rot90: |
52 | - return y - xoffs + yoffs; | 8 | - return y - xoffs + yoffs; |
53 | + return y - this->xoffs + this->yoffs; | 9 | + return y - this->xoffs + this->yoffs; |
54 | case QTransformedScreen::Rot180: | 10 | case QTransformedScreen::Rot180: |
55 | - return (width - x - 1) - xoffs - xoffs; | 11 | - return (width - x - 1) - xoffs - xoffs; |
56 | + return (this->width - x - 1) - this->xoffs - this->xoffs; | 12 | + return (this->width - x - 1) - this->xoffs - this->xoffs; |
57 | case QTransformedScreen::Rot270: | 13 | case QTransformedScreen::Rot270: |
58 | - return (height - y - 1) - xoffs - yoffs; | 14 | - return (height - y - 1) - xoffs - yoffs; |
59 | + return (this->height - y - 1) - this->xoffs - this->yoffs; | 15 | + return (this->height - y - 1) - this->xoffs - this->yoffs; |
60 | default: | 16 | default: |
61 | return x; | 17 | return x; |
62 | } | 18 | } |
63 | @@ -683,11 +683,11 @@ | 19 | @@ -683,11 +683,11 @@ |
64 | inline int ty( int x, int y ) { | 20 | inline int ty( int x, int y ) { |
65 | switch ( qt_trans_screen->transformation() ) { | 21 | switch ( qt_trans_screen->transformation() ) { |
66 | case QTransformedScreen::Rot90: | 22 | case QTransformedScreen::Rot90: |
67 | - return (width - x - 1) - yoffs - xoffs; | 23 | - return (width - x - 1) - yoffs - xoffs; |
68 | + return (this->width - x - 1) - this->yoffs - this->xoffs; | 24 | + return (this->width - x - 1) - this->yoffs - this->xoffs; |
69 | case QTransformedScreen::Rot180: | 25 | case QTransformedScreen::Rot180: |
70 | - return (height - y - 1) - yoffs - yoffs; | 26 | - return (height - y - 1) - yoffs - yoffs; |
71 | + return (this->height - y - 1) - this->yoffs - this->yoffs; | 27 | + return (this->height - y - 1) - this->yoffs - this->yoffs; |
72 | case QTransformedScreen::Rot270: | 28 | case QTransformedScreen::Rot270: |
73 | - return x - yoffs + xoffs; | 29 | - return x - yoffs + xoffs; |
74 | + return x - this->yoffs + this->xoffs; | 30 | + return x - this->yoffs + this->xoffs; |
75 | default: | 31 | default: |
76 | return y; | 32 | return y; |
77 | } | 33 | } |
78 | @@ -715,23 +715,23 @@ | 34 | @@ -715,23 +715,23 @@ |
79 | template <const int depth, const int type> | 35 | template <const int depth, const int type> |
80 | void QGfxTransformedRaster<depth,type>::setSourceWidgetOffset(int x, int y) | 36 | void QGfxTransformedRaster<depth,type>::setSourceWidgetOffset(int x, int y) |
81 | { | 37 | { |
82 | - if ( srcbits == buffer ) { | 38 | - if ( srcbits == buffer ) { |
83 | + if ( this->srcbits == this->buffer ) { | 39 | + if ( this->srcbits == this->buffer ) { |
84 | switch ( qt_trans_screen->transformation() ) { | 40 | switch ( qt_trans_screen->transformation() ) { |
85 | case QTransformedScreen::Rot90: | 41 | case QTransformedScreen::Rot90: |
86 | - srcwidgetoffs = QPoint( y, width - x - srcwidth ); | 42 | - srcwidgetoffs = QPoint( y, width - x - srcwidth ); |
87 | + this->srcwidgetoffs = QPoint( y, this->width - x - this->srcwidth ); | 43 | + this->srcwidgetoffs = QPoint( y, this->width - x - this->srcwidth ); |
88 | break; | 44 | break; |
89 | case QTransformedScreen::Rot180: | 45 | case QTransformedScreen::Rot180: |
90 | - srcwidgetoffs = QPoint( width - x - srcwidth, height - y - srcheight ); | 46 | - srcwidgetoffs = QPoint( width - x - srcwidth, height - y - srcheight ); |
91 | + this->srcwidgetoffs = QPoint( this->width - x - this->srcwidth, this->height - y - this->srcheight ); | 47 | + this->srcwidgetoffs = QPoint( this->width - x - this->srcwidth, this->height - y - this->srcheight ); |
92 | break; | 48 | break; |
93 | case QTransformedScreen::Rot270: | 49 | case QTransformedScreen::Rot270: |
94 | - srcwidgetoffs = QPoint( height - y - srcheight, x ); | 50 | - srcwidgetoffs = QPoint( height - y - srcheight, x ); |
95 | + this->srcwidgetoffs = QPoint( this->height - y - this->srcheight, x ); | 51 | + this->srcwidgetoffs = QPoint( this->height - y - this->srcheight, x ); |
96 | break; | 52 | break; |
97 | default: | 53 | default: |
98 | - srcwidgetoffs = QPoint( x, y ); | 54 | - srcwidgetoffs = QPoint( x, y ); |
99 | + this->srcwidgetoffs = QPoint( x, y ); | 55 | + this->srcwidgetoffs = QPoint( x, y ); |
100 | break; | 56 | break; |
101 | } | 57 | } |
102 | } else | 58 | } else |
103 | -srcwidgetoffs = QPoint( x, y ); | 59 | -srcwidgetoffs = QPoint( x, y ); |
104 | +this->srcwidgetoffs = QPoint( x, y ); | 60 | +this->srcwidgetoffs = QPoint( x, y ); |
105 | } | 61 | } |
106 | 62 | ||
107 | template <const int depth, const int type> | 63 | template <const int depth, const int type> |
108 | @@ -739,8 +739,8 @@ | 64 | @@ -739,8 +739,8 @@ |
109 | { | 65 | { |
110 | QT_TRANS_GFX_BASE<depth,type>::setSource(i); | 66 | QT_TRANS_GFX_BASE<depth,type>::setSource(i); |
111 | QSize s = qt_screen->mapToDevice( QSize(i->width(), i->height()) ); | 67 | QSize s = qt_screen->mapToDevice( QSize(i->width(), i->height()) ); |
@@ -188,253 +144,355 @@ diff -ur qt-2.3.7_clean/src/kernel/qgfxtransformed_qws.cpp qt-2.3.7/src/kernel/q | |||
188 | case QTransformedScreen::Rot270: | 144 | case QTransformedScreen::Rot270: |
189 | - rsx = srcheight - sy - h; | 145 | - rsx = srcheight - sy - h; |
190 | + rsx = this->srcheight - sy - h; | 146 | + rsx = this->srcheight - sy - h; |
191 | rsy = sx; | 147 | rsy = sx; |
192 | break; | 148 | break; |
193 | default: | 149 | default: |
194 | @@ -941,39 +941,39 @@ | 150 | @@ -941,39 +941,39 @@ |
195 | r.setCoords( tx(rx,ry), ty(rx,ry), tx(rx+w-1,ry+h-1), ty(rx+w-1,ry+h-1) ); | 151 | r.setCoords( tx(rx,ry), ty(rx,ry), tx(rx+w-1,ry+h-1), ty(rx+w-1,ry+h-1) ); |
196 | r = r.normalize(); | 152 | r = r.normalize(); |
197 | 153 | ||
198 | - QPoint oldBrushOffs = brushoffs; | 154 | - QPoint oldBrushOffs = brushoffs; |
199 | + QPoint oldBrushOffs = this->brushoffs; | 155 | + QPoint oldBrushOffs = this->brushoffs; |
200 | int brx, bry; | 156 | int brx, bry; |
201 | switch ( qt_trans_screen->transformation() ) { | 157 | switch ( qt_trans_screen->transformation() ) { |
202 | case QTransformedScreen::Rot90: | 158 | case QTransformedScreen::Rot90: |
203 | - brx = brushoffs.y(); | 159 | - brx = brushoffs.y(); |
204 | - bry = srcwidth - brushoffs.x() - w; | 160 | - bry = srcwidth - brushoffs.x() - w; |
205 | + brx = this->brushoffs.y(); | 161 | + brx = this->brushoffs.y(); |
206 | + bry = this->srcwidth - this->brushoffs.x() - w; | 162 | + bry = this->srcwidth - this->brushoffs.x() - w; |
207 | break; | 163 | break; |
208 | case QTransformedScreen::Rot180: | 164 | case QTransformedScreen::Rot180: |
209 | - brx = srcwidth - brushoffs.x() - w; | 165 | - brx = srcwidth - brushoffs.x() - w; |
210 | - bry = srcheight - brushoffs.y() - h; | 166 | - bry = srcheight - brushoffs.y() - h; |
211 | + brx = this->srcwidth - this->brushoffs.x() - w; | 167 | + brx = this->srcwidth - this->brushoffs.x() - w; |
212 | + bry = this->srcheight - this->brushoffs.y() - h; | 168 | + bry = this->srcheight - this->brushoffs.y() - h; |
213 | break; | 169 | break; |
214 | case QTransformedScreen::Rot270: | 170 | case QTransformedScreen::Rot270: |
215 | - brx = srcheight - brushoffs.y() - h; | 171 | - brx = srcheight - brushoffs.y() - h; |
216 | - bry = brushoffs.x(); | 172 | - bry = brushoffs.x(); |
217 | + brx = this->srcheight - this->brushoffs.y() - h; | 173 | + brx = this->srcheight - this->brushoffs.y() - h; |
218 | + bry = this->brushoffs.x(); | 174 | + bry = this->brushoffs.x(); |
219 | break; | 175 | break; |
220 | default: | 176 | default: |
221 | - brx = brushoffs.x(); | 177 | - brx = brushoffs.x(); |
222 | - bry = brushoffs.y(); | 178 | - bry = brushoffs.y(); |
223 | + brx = this->brushoffs.x(); | 179 | + brx = this->brushoffs.x(); |
224 | + bry = this->brushoffs.y(); | 180 | + bry = this->brushoffs.y(); |
225 | break; | 181 | break; |
226 | } | 182 | } |
227 | - brushoffs = QPoint( brx, bry ); | 183 | - brushoffs = QPoint( brx, bry ); |
228 | + this->brushoffs = QPoint( brx, bry ); | 184 | + this->brushoffs = QPoint( brx, bry ); |
229 | 185 | ||
230 | - int oldsw = srcwidth; | 186 | - int oldsw = srcwidth; |
231 | - int oldsh = srcheight; | 187 | - int oldsh = srcheight; |
232 | - QSize s = qt_screen->mapToDevice( QSize(srcwidth,srcheight) ); | 188 | - QSize s = qt_screen->mapToDevice( QSize(srcwidth,srcheight) ); |
233 | - srcwidth = s.width(); | 189 | - srcwidth = s.width(); |
234 | - srcheight = s.height(); | 190 | - srcheight = s.height(); |
235 | + int oldsw = this->srcwidth; | 191 | + int oldsw = this->srcwidth; |
236 | + int oldsh = this->srcheight; | 192 | + int oldsh = this->srcheight; |
237 | + QSize s = qt_screen->mapToDevice( QSize(this->srcwidth,this->srcheight) ); | 193 | + QSize s = qt_screen->mapToDevice( QSize(this->srcwidth,this->srcheight) ); |
238 | + this->srcwidth = s.width(); | 194 | + this->srcwidth = s.width(); |
239 | + this->srcheight = s.height(); | 195 | + this->srcheight = s.height(); |
240 | 196 | ||
241 | QT_TRANS_GFX_BASE<depth,type>::tiledBlt( r.x(), r.y(), r.width(), r.height() ); | 197 | QT_TRANS_GFX_BASE<depth,type>::tiledBlt( r.x(), r.y(), r.width(), r.height() ); |
242 | 198 | ||
243 | - srcwidth = oldsw; | 199 | - srcwidth = oldsw; |
244 | - srcheight = oldsh; | 200 | - srcheight = oldsh; |
245 | - brushoffs = oldBrushOffs; | 201 | - brushoffs = oldBrushOffs; |
246 | + this->srcwidth = oldsw; | 202 | + this->srcwidth = oldsw; |
247 | + this->srcheight = oldsh; | 203 | + this->srcheight = oldsh; |
248 | + this->brushoffs = oldBrushOffs; | 204 | + this->brushoffs = oldBrushOffs; |
249 | inDraw = FALSE; | 205 | inDraw = FALSE; |
250 | } | 206 | } |
251 | 207 | ||
252 | diff -ur qt-2.3.7_clean/src/kernel/qgfxvfb_qws.cpp qt-2.3.7/src/kernel/qgfxvfb_qws.cpp | 208 | diff -ur qt-2.3.7_old/src/kernel/qgfxvfb_qws.cpp qt-2.3.7/src/kernel/qgfxvfb_qws.cpp |
253 | --- qt-2.3.7_clean/src/kernel/qgfxvfb_qws.cpp2004-06-04 02:17:53.000000000 +0200 | 209 | --- qt-2.3.7_old/src/kernel/qgfxvfb_qws.cpp2004-09-10 21:08:04.000000000 +0200 |
254 | +++ qt-2.3.7/src/kernel/qgfxvfb_qws.cpp2004-06-04 02:24:25.000000000 +0200 | 210 | +++ qt-2.3.7/src/kernel/qgfxvfb_qws.cpp2004-09-10 21:08:42.000000000 +0200 |
255 | @@ -31,7 +31,6 @@ | 211 | @@ -31,7 +31,6 @@ |
256 | **********************************************************************/ | 212 | **********************************************************************/ |
257 | 213 | ||
258 | #include "qgfxraster_qws.h" | 214 | #include "qgfxraster_qws.h" |
259 | - | 215 | - |
260 | #ifndef QT_NO_QWS_VFB | 216 | #ifndef QT_NO_QWS_VFB |
261 | 217 | ||
262 | #include <sys/ipc.h> | 218 | #include <sys/ipc.h> |
263 | @@ -140,8 +139,8 @@ | 219 | @@ -140,8 +139,8 @@ |
264 | void QGfxVFb<depth,type>::drawPoint( int x, int y ) | 220 | void QGfxVFb<depth,type>::drawPoint( int x, int y ) |
265 | { | 221 | { |
266 | QWSDisplay::grab( TRUE ); | 222 | QWSDisplay::grab( TRUE ); |
267 | - if ( is_screen_gfx ) | 223 | - if ( is_screen_gfx ) |
268 | -qvfb_screen->setDirty( QRect( x+xoffs, y+yoffs, 1, 1 ) ); | 224 | -qvfb_screen->setDirty( QRect( x+xoffs, y+yoffs, 1, 1 ) ); |
269 | + if ( this->is_screen_gfx ) | 225 | + if ( this->is_screen_gfx ) |
270 | +qvfb_screen->setDirty( QRect( x+this->xoffs, y+this->yoffs, 1, 1 ) ); | 226 | +qvfb_screen->setDirty( QRect( x+this->xoffs, y+this->yoffs, 1, 1 ) ); |
271 | QGfxRaster<depth,type>::drawPoint( x, y ); | 227 | QGfxRaster<depth,type>::drawPoint( x, y ); |
272 | QWSDisplay::ungrab(); | 228 | QWSDisplay::ungrab(); |
273 | } | 229 | } |
274 | @@ -150,8 +149,8 @@ | 230 | @@ -150,8 +149,8 @@ |
275 | void QGfxVFb<depth,type>::drawPoints( const QPointArray &pa,int x,int y ) | 231 | void QGfxVFb<depth,type>::drawPoints( const QPointArray &pa,int x,int y ) |
276 | { | 232 | { |
277 | QWSDisplay::grab( TRUE ); | 233 | QWSDisplay::grab( TRUE ); |
278 | - if ( is_screen_gfx ) | 234 | - if ( is_screen_gfx ) |
279 | -qvfb_screen->setDirty( clipbounds ); | 235 | -qvfb_screen->setDirty( clipbounds ); |
280 | + if ( this->is_screen_gfx ) | 236 | + if ( this->is_screen_gfx ) |
281 | +qvfb_screen->setDirty( this->clipbounds ); | 237 | +qvfb_screen->setDirty( this->clipbounds ); |
282 | QGfxRaster<depth,type>::drawPoints( pa, x, y ); | 238 | QGfxRaster<depth,type>::drawPoints( pa, x, y ); |
283 | QWSDisplay::ungrab(); | 239 | QWSDisplay::ungrab(); |
284 | } | 240 | } |
285 | @@ -160,9 +159,9 @@ | 241 | @@ -160,9 +159,9 @@ |
286 | void QGfxVFb<depth,type>::drawLine( int x1,int y1,int x2,int y2 ) | 242 | void QGfxVFb<depth,type>::drawLine( int x1,int y1,int x2,int y2 ) |
287 | { | 243 | { |
288 | QWSDisplay::grab( TRUE ); | 244 | QWSDisplay::grab( TRUE ); |
289 | - if ( is_screen_gfx ) { | 245 | - if ( is_screen_gfx ) { |
290 | + if ( this->is_screen_gfx ) { | 246 | + if ( this->is_screen_gfx ) { |
291 | QRect r; | 247 | QRect r; |
292 | -r.setCoords( x1+xoffs, y1+yoffs, x2+xoffs, y2+yoffs ); | 248 | -r.setCoords( x1+xoffs, y1+yoffs, x2+xoffs, y2+yoffs ); |
293 | +r.setCoords( x1+this->xoffs, y1+this->yoffs, x2+this->xoffs, y2+this->yoffs ); | 249 | +r.setCoords( x1+this->xoffs, y1+this->yoffs, x2+this->xoffs, y2+this->yoffs ); |
294 | qvfb_screen->setDirty( r.normalize() ); | 250 | qvfb_screen->setDirty( r.normalize() ); |
295 | } | 251 | } |
296 | QGfxRaster<depth,type>::drawLine( x1, y1, x2, y2 ); | 252 | QGfxRaster<depth,type>::drawLine( x1, y1, x2, y2 ); |
297 | @@ -173,8 +172,8 @@ | 253 | @@ -173,8 +172,8 @@ |
298 | void QGfxVFb<depth,type>::fillRect( int x,int y,int w,int h ) | 254 | void QGfxVFb<depth,type>::fillRect( int x,int y,int w,int h ) |
299 | { | 255 | { |
300 | QWSDisplay::grab( TRUE ); | 256 | QWSDisplay::grab( TRUE ); |
301 | - if ( is_screen_gfx ) | 257 | - if ( is_screen_gfx ) |
302 | -qvfb_screen->setDirty( QRect( x+xoffs, y+yoffs, w, h ) ); | 258 | -qvfb_screen->setDirty( QRect( x+xoffs, y+yoffs, w, h ) ); |
303 | + if ( this->is_screen_gfx ) | 259 | + if ( this->is_screen_gfx ) |
304 | +qvfb_screen->setDirty( QRect( x+this->xoffs, y+this->yoffs, w, h ) ); | 260 | +qvfb_screen->setDirty( QRect( x+this->xoffs, y+this->yoffs, w, h ) ); |
305 | QGfxRaster<depth,type>::fillRect( x, y, w, h ); | 261 | QGfxRaster<depth,type>::fillRect( x, y, w, h ); |
306 | QWSDisplay::ungrab(); | 262 | QWSDisplay::ungrab(); |
307 | } | 263 | } |
308 | @@ -183,8 +182,8 @@ | 264 | @@ -183,8 +182,8 @@ |
309 | void QGfxVFb<depth,type>::drawPolyline( const QPointArray &pa,int x,int y ) | 265 | void QGfxVFb<depth,type>::drawPolyline( const QPointArray &pa,int x,int y ) |
310 | { | 266 | { |
311 | QWSDisplay::grab( TRUE ); | 267 | QWSDisplay::grab( TRUE ); |
312 | - if ( is_screen_gfx ) | 268 | - if ( is_screen_gfx ) |
313 | -qvfb_screen->setDirty( clipbounds ); | 269 | -qvfb_screen->setDirty( clipbounds ); |
314 | + if ( this->is_screen_gfx ) | 270 | + if ( this->is_screen_gfx ) |
315 | +qvfb_screen->setDirty( this->clipbounds ); | 271 | +qvfb_screen->setDirty( this->clipbounds ); |
316 | QGfxRaster<depth,type>::drawPolyline( pa, x, y ); | 272 | QGfxRaster<depth,type>::drawPolyline( pa, x, y ); |
317 | QWSDisplay::ungrab(); | 273 | QWSDisplay::ungrab(); |
318 | } | 274 | } |
319 | @@ -193,8 +192,8 @@ | 275 | @@ -193,8 +192,8 @@ |
320 | void QGfxVFb<depth,type>::drawPolygon( const QPointArray &pa,bool w,int x,int y ) | 276 | void QGfxVFb<depth,type>::drawPolygon( const QPointArray &pa,bool w,int x,int y ) |
321 | { | 277 | { |
322 | QWSDisplay::grab( TRUE ); | 278 | QWSDisplay::grab( TRUE ); |
323 | - if ( is_screen_gfx ) | 279 | - if ( is_screen_gfx ) |
324 | -qvfb_screen->setDirty( clipbounds ); | 280 | -qvfb_screen->setDirty( clipbounds ); |
325 | + if ( this->is_screen_gfx ) | 281 | + if ( this->is_screen_gfx ) |
326 | +qvfb_screen->setDirty( this->clipbounds ); | 282 | +qvfb_screen->setDirty( this->clipbounds ); |
327 | QGfxRaster<depth,type>::drawPolygon( pa, w, x, y ); | 283 | QGfxRaster<depth,type>::drawPolygon( pa, w, x, y ); |
328 | QWSDisplay::ungrab(); | 284 | QWSDisplay::ungrab(); |
329 | } | 285 | } |
330 | @@ -203,8 +202,8 @@ | 286 | @@ -203,8 +202,8 @@ |
331 | void QGfxVFb<depth,type>::blt( int x,int y,int w,int h, int sx, int sy ) | 287 | void QGfxVFb<depth,type>::blt( int x,int y,int w,int h, int sx, int sy ) |
332 | { | 288 | { |
333 | QWSDisplay::grab( TRUE ); | 289 | QWSDisplay::grab( TRUE ); |
334 | - if ( is_screen_gfx ) | 290 | - if ( is_screen_gfx ) |
335 | -qvfb_screen->setDirty( QRect( x+xoffs, y+yoffs, w, h ) ); | 291 | -qvfb_screen->setDirty( QRect( x+xoffs, y+yoffs, w, h ) ); |
336 | + if ( this->is_screen_gfx ) | 292 | + if ( this->is_screen_gfx ) |
337 | +qvfb_screen->setDirty( QRect( x+this->xoffs, y+this->yoffs, w, h ) ); | 293 | +qvfb_screen->setDirty( QRect( x+this->xoffs, y+this->yoffs, w, h ) ); |
338 | QGfxRaster<depth,type>::blt( x, y, w, h, sx, sy ); | 294 | QGfxRaster<depth,type>::blt( x, y, w, h, sx, sy ); |
339 | QWSDisplay::ungrab(); | 295 | QWSDisplay::ungrab(); |
340 | } | 296 | } |
341 | @@ -215,8 +214,8 @@ | 297 | @@ -215,8 +214,8 @@ |
342 | QWSDisplay::grab( TRUE ); | 298 | QWSDisplay::grab( TRUE ); |
343 | int dy = sy - y; | 299 | int dy = sy - y; |
344 | int dx = sx - x; | 300 | int dx = sx - x; |
345 | - if ( is_screen_gfx ) | 301 | - if ( is_screen_gfx ) |
346 | -qvfb_screen->setDirty( QRect(QMIN(x,sx) + xoffs, QMIN(y,sy) + yoffs, | 302 | -qvfb_screen->setDirty( QRect(QMIN(x,sx) + xoffs, QMIN(y,sy) + yoffs, |
347 | + if ( this->is_screen_gfx ) | 303 | + if ( this->is_screen_gfx ) |
348 | +qvfb_screen->setDirty( QRect(QMIN(x,sx) + this->xoffs, QMIN(y,sy) + this->yoffs, | 304 | +qvfb_screen->setDirty( QRect(QMIN(x,sx) + this->xoffs, QMIN(y,sy) + this->yoffs, |
349 | w+abs(dx), h+abs(dy)) ); | 305 | w+abs(dx), h+abs(dy)) ); |
350 | QGfxRaster<depth,type>::scroll( x, y, w, h, sx, sy ); | 306 | QGfxRaster<depth,type>::scroll( x, y, w, h, sx, sy ); |
351 | QWSDisplay::ungrab(); | 307 | QWSDisplay::ungrab(); |
352 | @@ -227,8 +226,8 @@ | 308 | @@ -227,8 +226,8 @@ |
353 | void QGfxVFb<depth,type>::stretchBlt( int x,int y,int w,int h,int sx,int sy ) | 309 | void QGfxVFb<depth,type>::stretchBlt( int x,int y,int w,int h,int sx,int sy ) |
354 | { | 310 | { |
355 | QWSDisplay::grab( TRUE ); | 311 | QWSDisplay::grab( TRUE ); |
356 | - if ( is_screen_gfx ) | 312 | - if ( is_screen_gfx ) |
357 | -qvfb_screen->setDirty( QRect( x + xoffs, y + yoffs, w, h) ); | 313 | -qvfb_screen->setDirty( QRect( x + xoffs, y + yoffs, w, h) ); |
358 | + if ( this->is_screen_gfx ) | 314 | + if ( this->is_screen_gfx ) |
359 | +qvfb_screen->setDirty( QRect( x + this->xoffs, y + this->yoffs, w, h) ); | 315 | +qvfb_screen->setDirty( QRect( x + this->xoffs, y + this->yoffs, w, h) ); |
360 | QGfxRaster<depth,type>::stretchBlt( x, y, w, h, sx, sy ); | 316 | QGfxRaster<depth,type>::stretchBlt( x, y, w, h, sx, sy ); |
361 | QWSDisplay::ungrab(); | 317 | QWSDisplay::ungrab(); |
362 | } | 318 | } |
363 | @@ -238,8 +237,8 @@ | 319 | @@ -238,8 +237,8 @@ |
364 | void QGfxVFb<depth,type>::tiledBlt( int x,int y,int w,int h ) | 320 | void QGfxVFb<depth,type>::tiledBlt( int x,int y,int w,int h ) |
365 | { | 321 | { |
366 | QWSDisplay::grab( TRUE ); | 322 | QWSDisplay::grab( TRUE ); |
367 | - if ( is_screen_gfx ) | 323 | - if ( is_screen_gfx ) |
368 | -qvfb_screen->setDirty( QRect(x + xoffs, y + yoffs, w, h) ); | 324 | -qvfb_screen->setDirty( QRect(x + xoffs, y + yoffs, w, h) ); |
369 | + if ( this->is_screen_gfx ) | 325 | + if ( this->is_screen_gfx ) |
370 | +qvfb_screen->setDirty( QRect(x + this->xoffs, y + this->yoffs, w, h) ); | 326 | +qvfb_screen->setDirty( QRect(x + this->xoffs, y + this->yoffs, w, h) ); |
371 | QGfxRaster<depth,type>::tiledBlt( x, y, w, h ); | 327 | QGfxRaster<depth,type>::tiledBlt( x, y, w, h ); |
372 | QWSDisplay::ungrab(); | 328 | QWSDisplay::ungrab(); |
373 | } | 329 | } |
374 | diff -ur qt-2.3.7_clean/src/tools/qcstring.h qt-2.3.7/src/tools/qcstring.h | 330 | diff -ur qt-2.3.7_old/src/kernel/qgfxvnc_qws.cpp qt-2.3.7/src/kernel/qgfxvnc_qws.cpp |
375 | --- qt-2.3.7_clean/src/tools/qcstring.h2004-06-04 02:17:53.000000000 +0200 | 331 | --- qt-2.3.7_old/src/kernel/qgfxvnc_qws.cpp2004-09-10 21:08:04.000000000 +0200 |
376 | +++ qt-2.3.7/src/tools/qcstring.h2004-06-04 02:24:25.000000000 +0200 | 332 | +++ qt-2.3.7/src/kernel/qgfxvnc_qws.cpp2004-09-10 21:10:54.000000000 +0200 |
333 | @@ -971,7 +971,7 @@ | ||
334 | void QGfxVNC<depth,type>::drawPoint( int x, int y ) | ||
335 | { | ||
336 | QWSDisplay::grab( TRUE ); | ||
337 | - qvnc_screen->setDirty( QRect( x+xoffs, y+yoffs, 1, 1 ) & clipbounds ); | ||
338 | + qvnc_screen->setDirty( QRect( x+this->xoffs, y+this->yoffs, 1, 1 ) & this->clipbounds ); | ||
339 | QGfxRaster<depth,type>::drawPoint( x, y ); | ||
340 | QWSDisplay::ungrab(); | ||
341 | } | ||
342 | @@ -981,8 +981,8 @@ | ||
343 | { | ||
344 | QWSDisplay::grab( TRUE ); | ||
345 | QRect r = pa.boundingRect(); | ||
346 | - r.moveBy( xoffs, yoffs ); | ||
347 | - qvnc_screen->setDirty( r & clipbounds ); | ||
348 | + r.moveBy( this->xoffs, this->yoffs ); | ||
349 | + qvnc_screen->setDirty( r & this->clipbounds ); | ||
350 | QGfxRaster<depth,type>::drawPoints( pa, x, y ); | ||
351 | QWSDisplay::ungrab(); | ||
352 | } | ||
353 | @@ -992,9 +992,9 @@ | ||
354 | { | ||
355 | QWSDisplay::grab( TRUE ); | ||
356 | QRect r; | ||
357 | - r.setCoords( x1+xoffs, y1+yoffs, x2+xoffs, y2+yoffs ); | ||
358 | + r.setCoords( x1+this->xoffs, y1+this->yoffs, x2+this->xoffs, y2+this->yoffs ); | ||
359 | r = r.normalize(); | ||
360 | - qvnc_screen->setDirty( r & clipbounds ); | ||
361 | + qvnc_screen->setDirty( r & this->clipbounds ); | ||
362 | QGfxRaster<depth,type>::drawLine( x1, y1, x2, y2 ); | ||
363 | QWSDisplay::ungrab(); | ||
364 | } | ||
365 | @@ -1003,7 +1003,7 @@ | ||
366 | void QGfxVNC<depth,type>::fillRect( int x,int y,int w,int h ) | ||
367 | { | ||
368 | QWSDisplay::grab( TRUE ); | ||
369 | - qvnc_screen->setDirty( QRect( x+xoffs, y+yoffs, w, h ) & clipbounds ); | ||
370 | + qvnc_screen->setDirty( QRect( x+this->xoffs, y+this->yoffs, w, h ) & this->clipbounds ); | ||
371 | QGfxRaster<depth,type>::fillRect( x, y, w, h ); | ||
372 | QWSDisplay::ungrab(); | ||
373 | } | ||
374 | @@ -1013,8 +1013,8 @@ | ||
375 | { | ||
376 | QWSDisplay::grab( TRUE ); | ||
377 | QRect r = pa.boundingRect(); | ||
378 | - r.moveBy( xoffs, yoffs ); | ||
379 | - qvnc_screen->setDirty( r & clipbounds ); | ||
380 | + r.moveBy( this->xoffs, this->yoffs ); | ||
381 | + qvnc_screen->setDirty( r & this->clipbounds ); | ||
382 | QGfxRaster<depth,type>::drawPolyline( pa, x, y ); | ||
383 | QWSDisplay::ungrab(); | ||
384 | } | ||
385 | @@ -1024,8 +1024,8 @@ | ||
386 | { | ||
387 | QWSDisplay::grab( TRUE ); | ||
388 | QRect r = pa.boundingRect(); | ||
389 | - r.moveBy( xoffs, yoffs ); | ||
390 | - qvnc_screen->setDirty( r & clipbounds ); | ||
391 | + r.moveBy( this->xoffs, this->yoffs ); | ||
392 | + qvnc_screen->setDirty( r & this->clipbounds ); | ||
393 | QGfxRaster<depth,type>::drawPolygon( pa, w, x, y ); | ||
394 | QWSDisplay::ungrab(); | ||
395 | } | ||
396 | @@ -1034,7 +1034,7 @@ | ||
397 | void QGfxVNC<depth,type>::blt( int x,int y,int w,int h, int sx, int sy ) | ||
398 | { | ||
399 | QWSDisplay::grab( TRUE ); | ||
400 | - qvnc_screen->setDirty( QRect( x+xoffs, y+yoffs, w, h ) & clipbounds ); | ||
401 | + qvnc_screen->setDirty( QRect( x+this->xoffs, y+this->yoffs, w, h ) & this->clipbounds ); | ||
402 | QGfxRaster<depth,type>::blt( x, y, w, h, sx, sy ); | ||
403 | QWSDisplay::ungrab(); | ||
404 | } | ||
405 | @@ -1045,8 +1045,8 @@ | ||
406 | QWSDisplay::grab( TRUE ); | ||
407 | int dy = sy - y; | ||
408 | int dx = sx - x; | ||
409 | - qvnc_screen->setDirty( QRect(QMIN(x,sx) + xoffs, QMIN(y,sy) + yoffs, | ||
410 | - w+abs(dx), h+abs(dy)) & clipbounds ); | ||
411 | + qvnc_screen->setDirty( QRect(QMIN(x,sx) + this->xoffs, QMIN(y,sy) + this->yoffs, | ||
412 | + w+abs(dx), h+abs(dy)) & this->clipbounds ); | ||
413 | QGfxRaster<depth,type>::scroll( x, y, w, h, sx, sy ); | ||
414 | QWSDisplay::ungrab(); | ||
415 | } | ||
416 | @@ -1056,7 +1056,7 @@ | ||
417 | void QGfxVNC<depth,type>::stretchBlt( int x,int y,int w,int h,int sx,int sy ) | ||
418 | { | ||
419 | QWSDisplay::grab( TRUE ); | ||
420 | - qvnc_screen->setDirty( QRect( x + xoffs, y + yoffs, w, h) & clipbounds ); | ||
421 | + qvnc_screen->setDirty( QRect( x + this->xoffs, y + this->yoffs, w, h) & this->clipbounds ); | ||
422 | QGfxRaster<depth,type>::stretchBlt( x, y, w, h, sx, sy ); | ||
423 | QWSDisplay::ungrab(); | ||
424 | } | ||
425 | @@ -1066,7 +1066,7 @@ | ||
426 | void QGfxVNC<depth,type>::tiledBlt( int x,int y,int w,int h ) | ||
427 | { | ||
428 | QWSDisplay::grab( TRUE ); | ||
429 | - qvnc_screen->setDirty( QRect(x + xoffs, y + yoffs, w, h) & clipbounds ); | ||
430 | + qvnc_screen->setDirty( QRect(x + this->xoffs, y + this->yoffs, w, h) & this->clipbounds ); | ||
431 | QGfxRaster<depth,type>::tiledBlt( x, y, w, h ); | ||
432 | QWSDisplay::ungrab(); | ||
433 | } | ||
434 | diff -ur qt-2.3.7_old/src/tools/qcstring.h qt-2.3.7/src/tools/qcstring.h | ||
435 | --- qt-2.3.7_old/src/tools/qcstring.h2004-09-10 21:08:04.000000000 +0200 | ||
436 | +++ qt-2.3.7/src/tools/qcstring.h2004-09-10 21:08:42.000000000 +0200 | ||
377 | @@ -119,7 +119,7 @@ | 437 | @@ -119,7 +119,7 @@ |
378 | // We want to keep source compatibility for 2.x | 438 | // We want to keep source compatibility for 2.x |
379 | // ### TODO for 4.0: completely remove these and the cstr* functions | 439 | // ### TODO for 4.0: completely remove these and the cstr* functions |
380 | 440 | ||
381 | -#if !defined(QT_GENUINE_STR) | 441 | -#if !defined(QT_GENUINE_STR) |
382 | +#if 0 | 442 | +#if 0 |
383 | 443 | ||
384 | #undefstrlen | 444 | #undefstrlen |
385 | #define strlen qstrlen | 445 | #define strlen qstrlen |
386 | diff -ur qt-2.3.7_clean/src/tools/qglobal.h qt-2.3.7/src/tools/qglobal.h | 446 | diff -ur qt-2.3.7_old/src/tools/qglobal.h qt-2.3.7/src/tools/qglobal.h |
387 | --- qt-2.3.7_clean/src/tools/qglobal.h2004-06-04 02:17:53.000000000 +0200 | 447 | --- qt-2.3.7_old/src/tools/qglobal.h2004-09-10 21:08:04.000000000 +0200 |
388 | +++ qt-2.3.7/src/tools/qglobal.h2004-06-04 02:29:41.000000000 +0200 | 448 | +++ qt-2.3.7/src/tools/qglobal.h2004-09-10 21:08:42.000000000 +0200 |
389 | @@ -207,8 +207,16 @@ | 449 | @@ -207,8 +207,16 @@ |
390 | #if __GNUC__ == 2 && __GNUC_MINOR__ == 96 | 450 | #if __GNUC__ == 2 && __GNUC_MINOR__ == 96 |
391 | #define Q_FP_CCAST_BROKEN | 451 | #define Q_FP_CCAST_BROKEN |
392 | #endif | 452 | #endif |
393 | +/* ARM gcc pads structs to 32 bits, even when they contain a single | 453 | +/* ARM gcc pads structs to 32 bits, even when they contain a single |
394 | + char, or short. We tell gcc to pack QChars to 16 bits, to avoid | 454 | + char, or short. We tell gcc to pack QChars to 16 bits, to avoid |
395 | + QString bloat. However, gcc 3.4 doesn't allow us to create references to | 455 | + QString bloat. However, gcc 3.4 doesn't allow us to create references to |
396 | + members of a packed struct. (Pointers are OK, because then you | 456 | + members of a packed struct. (Pointers are OK, because then you |
397 | + supposedly know what you are doing.) */ | 457 | + supposedly know what you are doing.) */ |
398 | #if (defined(__arm__) || defined(__ARMEL__)) && !defined(QT_MOC_CPP) | 458 | #if (defined(__arm__) || defined(__ARMEL__)) && !defined(QT_MOC_CPP) |
399 | #define Q_PACKED __attribute__ ((packed)) | 459 | #define Q_PACKED __attribute__ ((packed)) |
400 | +# if __GNUC__ == 3 && __GNUC_MINOR__ >= 4 | 460 | +# if __GNUC__ == 3 && __GNUC_MINOR__ >= 4 |
401 | +# define Q_NO_PACKED_REFERENCE | 461 | +# define Q_NO_PACKED_REFERENCE |
402 | +# endif | 462 | +# endif |
403 | #endif | 463 | #endif |
404 | #elif defined(__xlC__) | 464 | #elif defined(__xlC__) |
405 | #define _CC_XLC_ | 465 | #define _CC_XLC_ |
406 | Nur in qt-2.3.7/src/tools: qglobal.h~. | 466 | diff -ur qt-2.3.7_old/src/tools/qsortedlist.h qt-2.3.7/src/tools/qsortedlist.h |
407 | diff -ur qt-2.3.7_clean/src/tools/qsortedlist.h qt-2.3.7/src/tools/qsortedlist.h | 467 | --- qt-2.3.7_old/src/tools/qsortedlist.h2004-09-10 21:08:04.000000000 +0200 |
408 | --- qt-2.3.7_clean/src/tools/qsortedlist.h2004-06-04 02:17:53.000000000 +0200 | 468 | +++ qt-2.3.7/src/tools/qsortedlist.h2004-09-10 21:08:42.000000000 +0200 |
409 | +++ qt-2.3.7/src/tools/qsortedlist.h2004-06-04 02:24:25.000000000 +0200 | ||
410 | @@ -48,7 +48,7 @@ | 469 | @@ -48,7 +48,7 @@ |
411 | public: | 470 | public: |
412 | QSortedList() {} | 471 | QSortedList() {} |
413 | QSortedList( const QSortedList<type> &l ) : QList<type>(l) {} | 472 | QSortedList( const QSortedList<type> &l ) : QList<type>(l) {} |
414 | - ~QSortedList() { clear(); } | 473 | - ~QSortedList() { clear(); } |
415 | + ~QSortedList() { this->clear(); } | 474 | + ~QSortedList() { this->clear(); } |
416 | QSortedList<type> &operator=(const QSortedList<type> &l) | 475 | QSortedList<type> &operator=(const QSortedList<type> &l) |
417 | { return (QSortedList<type>&)QList<type>::operator=(l); } | 476 | { return (QSortedList<type>&)QList<type>::operator=(l); } |
418 | 477 | ||
419 | diff -ur qt-2.3.7_clean/src/tools/qstring.h qt-2.3.7/src/tools/qstring.h | 478 | diff -ur qt-2.3.7_old/src/tools/qstring.h qt-2.3.7/src/tools/qstring.h |
420 | --- qt-2.3.7_clean/src/tools/qstring.h2004-06-04 02:17:53.000000000 +0200 | 479 | --- qt-2.3.7_old/src/tools/qstring.h2004-09-10 21:08:04.000000000 +0200 |
421 | +++ qt-2.3.7/src/tools/qstring.h2004-06-04 02:54:16.000000000 +0200 | 480 | +++ qt-2.3.7/src/tools/qstring.h2004-09-10 21:08:42.000000000 +0200 |
422 | @@ -163,8 +163,16 @@ | 481 | @@ -163,8 +163,16 @@ |
423 | bool isLetterOrNumber() const; | 482 | bool isLetterOrNumber() const; |
424 | bool isDigit() const; | 483 | bool isDigit() const; |
425 | 484 | ||
426 | + | 485 | + |
427 | +#ifdef Q_NO_PACKED_REFERENCE | 486 | +#ifdef Q_NO_PACKED_REFERENCE |
428 | + uchar& cell() { return *(&cl); } | 487 | + uchar& cell() { return *(&cl); } |
429 | + uchar& row() { return *(&rw); } | 488 | + uchar& row() { return *(&rw); } |
430 | +#else | 489 | +#else |
431 | uchar& cell() { return cl; } | 490 | uchar& cell() { return cl; } |
432 | - uchar& row() { return rw; } | 491 | - uchar& row() { return rw; } |
433 | + uchar& row() { return rw; } | 492 | + uchar& row() { return rw; } |
434 | +#endif | 493 | +#endif |
435 | + | 494 | + |
436 | + | 495 | + |
437 | uchar cell() const { return cl; } | 496 | uchar cell() const { return cl; } |
438 | uchar row() const { return rw; } | 497 | uchar row() const { return rw; } |
439 | 498 | ||
440 | Nur in qt-2.3.7/src/tools: qstring.h~. | ||