summaryrefslogtreecommitdiff
path: root/core
authorsandman <sandman>2002-06-27 22:03:59 (UTC)
committer sandman <sandman>2002-06-27 22:03:59 (UTC)
commit49710f20cf0e52ea3393027ed066f11e977e3457 (patch) (unidiff)
tree9840e5abb500042efdcd857ba837bdfe673e2485 /core
parentc9871ef295afed6bc4f4cc5451f46bf3b6e8d462 (diff)
downloadopie-49710f20cf0e52ea3393027ed066f11e977e3457.zip
opie-49710f20cf0e52ea3393027ed066f11e977e3457.tar.gz
opie-49710f20cf0e52ea3393027ed066f11e977e3457.tar.bz2
Workaround for the "LEDs dont't show on 38xx" aka "Qt/E is too dumb to
draw a circle" bug
Diffstat (limited to 'core') (more/less context) (ignore whitespace changes)
-rw-r--r--core/applets/volumeapplet/oledbox.cpp11
1 files changed, 8 insertions, 3 deletions
diff --git a/core/applets/volumeapplet/oledbox.cpp b/core/applets/volumeapplet/oledbox.cpp
index 3036929..7547287 100644
--- a/core/applets/volumeapplet/oledbox.cpp
+++ b/core/applets/volumeapplet/oledbox.cpp
@@ -151,2 +151,4 @@ void OLedBox::drawLed ( QPixmap *pix, const QColor &col ) // paint a ROUND SUNK
151 151
152 pix-> fill ( black );
153
152 // First of all we want to know what area should be updated 154 // First of all we want to know what area should be updated
@@ -221,3 +223,6 @@ void OLedBox::drawLed ( QPixmap *pix, const QColor &col ) // paint a ROUND SUNK
221 paint. drawPixmap ( 0, 0, *s_border_pix ); 223 paint. drawPixmap ( 0, 0, *s_border_pix );
222 224 paint. end ( );
225
226 pix-> setMask ( pix-> createHeuristicMask ( ));
227
223#else 228#else
@@ -255,3 +260,2 @@ void OLedBox::drawLed ( QPixmap *pix, const QColor &col ) // paint a ROUND SUNK
255 } // end for ( angle = 720; angle < 6480; angle += 160 ) 260 } // end for ( angle = 720; angle < 6480; angle += 160 )
256#endif
257 paint.end(); 261 paint.end();
@@ -266,4 +270,5 @@ void OLedBox::drawLed ( QPixmap *pix, const QColor &col ) // paint a ROUND SUNK
266 mp. end ( ); 270 mp. end ( );
267 271
268 pix-> setMask ( mask ); 272 pix-> setMask ( mask );
273#endif
269} 274}