summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--core/applets/volumeapplet/oledbox.cpp7
1 files changed, 6 insertions, 1 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
+ pix-> fill ( black );
+
// First of all we want to know what area should be updated
@@ -221,2 +223,5 @@ void OLedBox::drawLed ( QPixmap *pix, const QColor &col ) // paint a ROUND SUNK
paint. drawPixmap ( 0, 0, *s_border_pix );
+ paint. end ( );
+
+ pix-> setMask ( pix-> createHeuristicMask ( ));
@@ -255,3 +260,2 @@ void OLedBox::drawLed ( QPixmap *pix, const QColor &col ) // paint a ROUND SUNK
} // end for ( angle = 720; angle < 6480; angle += 160 )
-#endif
paint.end();
@@ -268,2 +272,3 @@ void OLedBox::drawLed ( QPixmap *pix, const QColor &col ) // paint a ROUND SUNK
pix-> setMask ( mask );
+#endif
}