summaryrefslogtreecommitdiff
path: root/menuitem.c
diff options
context:
space:
mode:
authorlouis <louis.braun@gmx.de>2013-05-04 17:18:05 +0200
committerlouis <louis.braun@gmx.de>2013-05-04 17:18:05 +0200
commit993bdf2ed543d832eebb1de158134223254dc8ee (patch)
tree81b8b7b98ff5ee3b4e31560cd768ed118e2d8af3 /menuitem.c
parent1bfdd7c81c641cc0e782b7bf360497b060a1d39b (diff)
downloadskin-nopacity-993bdf2ed543d832eebb1de158134223254dc8ee.tar.gz
skin-nopacity-993bdf2ed543d832eebb1de158134223254dc8ee.tar.bz2
Implemented workaround for VDR DrawEllipse bug
Diffstat (limited to 'menuitem.c')
-rw-r--r--menuitem.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/menuitem.c b/menuitem.c
index c4234f7..eca200e 100644
--- a/menuitem.c
+++ b/menuitem.c
@@ -156,7 +156,8 @@ void cNopacityMenuItem::DoSleep(int duration) {
void cNopacityMenuItem::DrawRoundedCorners(tColor borderColor) {
int radius = config.cornerRadius;
-
+ if (radius < 3)
+ return;
pixmap->DrawEllipse(cRect(0,0,radius,radius), borderColor, -2);
pixmap->DrawEllipse(cRect(-1,-1,radius,radius), clrTransparent, -2);