summaryrefslogtreecommitdiff
path: root/core/applets/volumeapplet/oledbox.cpp
Side-by-side diff
Diffstat (limited to 'core/applets/volumeapplet/oledbox.cpp') (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
@@ -150,4 +150,6 @@ void OLedBox::drawLed ( QPixmap *pix, const QColor &col ) // paint a ROUND SUNK
QPen pen;
+ pix-> fill ( black );
+
// First of all we want to know what area should be updated
// Initialize coordinates, width, and height of the LED
@@ -220,5 +222,8 @@ void OLedBox::drawLed ( QPixmap *pix, const QColor &col ) // paint a ROUND SUNK
#ifdef _QTE_IS_TOO_DUMB_TO_DRAW_AN_ARC
paint. drawPixmap ( 0, 0, *s_border_pix );
-
+ paint. end ( );
+
+ pix-> setMask ( pix-> createHeuristicMask ( ));
+
#else
pen.setWidth( 3 );
@@ -254,5 +259,4 @@ void OLedBox::drawLed ( QPixmap *pix, const QColor &col ) // paint a ROUND SUNK
} // end if ( angle < 2320 )
} // end for ( angle = 720; angle < 6480; angle += 160 )
-#endif
paint.end();
//
@@ -265,6 +269,7 @@ void OLedBox::drawLed ( QPixmap *pix, const QColor &col ) // paint a ROUND SUNK
mp. drawEllipse ( 0, 0, width + 2, width + 2 );
mp. end ( );
-
+
pix-> setMask ( mask );
+#endif
}