From 3840419eab26ed0ac363af20462ba6f40d2fbe2f Mon Sep 17 00:00:00 2001 From: Michael Lauer Date: Mon, 29 Aug 2005 12:49:51 +0000 Subject: qte-2.3.10: update c7x0-w100 accelleration patch. This version fixes painting QBitmaps. Patch courtesy Manuel Teira. --- packages/qte/qte-2.3.10/c7x0-w100-accel.patch | 37 +++++++++++++++++++-------- packages/qte/qte_2.3.10.bb | 2 +- 2 files changed, 27 insertions(+), 12 deletions(-) (limited to 'packages/qte') diff --git a/packages/qte/qte-2.3.10/c7x0-w100-accel.patch b/packages/qte/qte-2.3.10/c7x0-w100-accel.patch index 891c774d28..59a6710a94 100644 --- a/packages/qte/qte-2.3.10/c7x0-w100-accel.patch +++ b/packages/qte/qte-2.3.10/c7x0-w100-accel.patch @@ -46,7 +46,15 @@ Manuel Teira --- qt-2.3.10/src/kernel/qgfxraster_qws.cpp~w100 +++ qt-2.3.10/src/kernel/qgfxraster_qws.cpp -@@ -5945,6 +5945,10 @@ +@@ -2673,7 +2673,6 @@ + } + #endif + // Bresenham algorithm from Graphics Gems +- + int ax=QABS(dx)*2; + int ay=QABS(dy)*2; + int sy=dy>0 ? 1 : -1; +@@ -5945,6 +5944,10 @@ # include "qgfxmatrox_qws.cpp" #endif @@ -57,7 +65,7 @@ Manuel Teira #if !defined(QT_NO_QWS_VFB) # include "qgfxvfb_qws.cpp" #endif -@@ -5999,6 +6003,9 @@ +@@ -5999,6 +6002,9 @@ #if !defined(QT_NO_QWS_MATROX) { "Matrox", qt_get_screen_matrox, 1 }, #endif @@ -67,7 +75,7 @@ Manuel Teira #if !defined(QT_NO_QWS_TRANSFORMED) { "Transformed", qt_get_screen_transformed, 0 }, #endif -@@ -6039,6 +6046,8 @@ +@@ -6039,6 +6045,8 @@ qt_screen = driverTable[i].qt_get_screen( display_id ); if ( qt_screen ) { if ( qt_screen->connect( spec ) ) { @@ -655,7 +663,7 @@ Manuel Teira +#endif --- /dev/null +++ qt-2.3.10/src/kernel/qgfxw100_qws.cpp -@@ -0,0 +1,2702 @@ +@@ -0,0 +1,2709 @@ + /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil -*- */ +/*************************************************************************** + @@ -1745,7 +1753,8 @@ Manuel Teira + return; + } + -+ if ( !driver.accelerated( W100Driver::DRAWLINE ) ) { ++ if ( depth != 16 || ++ !driver.accelerated( W100Driver::DRAWLINE ) ) { + driver.addMiss( W100Driver::DRAWLINE ); + QGfxRaster::drawLine( x1, y1, x2, y2 ); + return; @@ -1865,7 +1874,8 @@ Manuel Teira + return; + } + -+ if ( !driver.accelerated( W100Driver::POLYLINE ) ) { ++ if ( depth != 16 || ++ !driver.accelerated( W100Driver::POLYLINE ) ) { + driver.addMiss( W100Driver::POLYLINE ); + QGfxRaster::drawPolyline( a, index, npoints ); + return; @@ -1968,7 +1978,8 @@ Manuel Teira + return; + } + -+ if ( !driver.accelerated( W100Driver::DRAWPOINT) ) { ++ if ( depth != 16 || ++ !driver.accelerated( W100Driver::DRAWPOINT) ) { + driver.addMiss( W100Driver::DRAWPOINT ); + QGfxRaster::drawPoint( x, y ); + return; @@ -2037,7 +2048,8 @@ Manuel Teira + return; + } + -+ if ( !driver.accelerated( W100Driver::DRAWPOINTS ) ) { ++ if ( depth != 16 || ++ !driver.accelerated( W100Driver::DRAWPOINTS ) ) { + driver.addMiss( W100Driver::DRAWPOINTS ); + QGfxRaster::drawPoints( a, index, npoints ); + return; @@ -2110,7 +2122,8 @@ Manuel Teira + int w, int h, + int sx, int sy ) +{ -+ if ( !driver.accelerated( W100Driver::SCROLL ) ) { ++ if ( depth != 16 || ++ !driver.accelerated( W100Driver::SCROLL ) ) { + driver.addMiss( W100Driver::SCROLL ); + QGfxRaster::scroll( rx, ry, w, h, sx, sy ); + return; @@ -2202,7 +2215,8 @@ Manuel Teira +{ + if ( w <= 0 || h <= 0 || this->ncliprect < 1 ) return; + -+ if ( !driver.accelerated( W100Driver::FILLRECT ) ) { ++ if ( depth != 16 || ++ !driver.accelerated( W100Driver::FILLRECT ) ) { + driver.addMiss( W100Driver::FILLRECT ); + QGfxRaster::fillRect( rx, ry, w, h ); + return; @@ -2310,7 +2324,8 @@ Manuel Teira + return; + } + -+ if ( !driver.accelerated( W100Driver::BITBLT ) ) { ++ if ( depth != 16 || ++ !driver.accelerated( W100Driver::BITBLT ) ) { + driver.addMiss( W100Driver::BITBLT ); + QGfxRaster::blt( rx, ry, w, h, sx, sy ); + return; diff --git a/packages/qte/qte_2.3.10.bb b/packages/qte/qte_2.3.10.bb index 739a378e9c..fb40262eb9 100644 --- a/packages/qte/qte_2.3.10.bb +++ b/packages/qte/qte_2.3.10.bb @@ -7,7 +7,7 @@ DEPENDS = "zlib libpng jpeg tslib uicmoc-native" DEPENDS_mnci = "zlib libpng jpeg uicmoc-native" DEPENDS_append_c7x0 = " sharp-aticore-oss" PROVIDES = "virtual/qte virtual/libqte2" -PR = "r24" +PR = "r25" SRC_URI = "ftp://ftp.trolltech.com/pub/qt/source/qt-embedded-${PV}-free.tar.gz;md5=1f7ad30113afc500cab7f5b2f4dec0d7 \ file://qpe.patch;patch=1 \ -- cgit v1.2.3