summaryrefslogtreecommitdiff
path: root/styledpixmap.c
diff options
context:
space:
mode:
authorlouis <louis.braun@gmx.de>2013-12-27 16:31:49 +0100
committerlouis <louis.braun@gmx.de>2013-12-27 16:31:49 +0100
commitc5af8c801775819dd9eed003883cb9cea2ef7376 (patch)
tree5fb061290ff8f0da82e84b977d93748b3377b5b0 /styledpixmap.c
parent53fa2c70cac3025ff223a6d0e2cdae2805b14c30 (diff)
downloadvdr-plugin-tvguide-c5af8c801775819dd9eed003883cb9cea2ef7376.tar.gz
vdr-plugin-tvguide-c5af8c801775819dd9eed003883cb9cea2ef7376.tar.bz2
Fixed OSD Background Color (Closes Ticket 1474)
Diffstat (limited to 'styledpixmap.c')
-rw-r--r--styledpixmap.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/styledpixmap.c b/styledpixmap.c
index 661ca08..20945f1 100644
--- a/styledpixmap.c
+++ b/styledpixmap.c
@@ -138,10 +138,10 @@ void cStyledPixmap::drawBorder() {
}
void cStyledPixmap::drawDefaultBorder(int width, int height) {
- pixmap->DrawRectangle(cRect(0,0,width,2), theme.Color(clrBackground)); //top
- pixmap->DrawRectangle(cRect(0,0,2,height), theme.Color(clrBackground)); //left
- pixmap->DrawRectangle(cRect(0,height-2,width,2), theme.Color(clrBackground)); //bottom
- pixmap->DrawRectangle(cRect(width-2,0,2,height), theme.Color(clrBackground)); //right
+ pixmap->DrawRectangle(cRect(0,0,width,2), clrTransparent); //top
+ pixmap->DrawRectangle(cRect(0,0,2,height), clrTransparent); //left
+ pixmap->DrawRectangle(cRect(0,height-2,width,2), clrTransparent); //bottom
+ pixmap->DrawRectangle(cRect(width-2,0,2,height), clrTransparent); //right
pixmap->DrawRectangle(cRect(2,2,width-4,1), theme.Color(clrBorder)); //top
pixmap->DrawRectangle(cRect(2,2,1,height-4), theme.Color(clrBorder)); //left
@@ -160,17 +160,17 @@ void cStyledPixmap::drawBoldBorder() {
void cStyledPixmap::drawRoundedCorners(int width, int height, int radius) {
pixmap->DrawEllipse(cRect(2,2,radius,radius), theme.Color(clrBorder), -2);
- pixmap->DrawEllipse(cRect(1,1,radius,radius), theme.Color(clrBackground), -2);
+ pixmap->DrawEllipse(cRect(1,1,radius,radius), clrTransparent, -2);
pixmap->DrawEllipse(cRect(width-radius - 2,2,radius,radius), theme.Color(clrBorder), -1);
- pixmap->DrawEllipse(cRect(width-radius - 1,1,radius,radius), theme.Color(clrBackground), -1);
+ pixmap->DrawEllipse(cRect(width-radius - 1,1,radius,radius), clrTransparent, -1);
if( height > 2*radius) {
pixmap->DrawEllipse(cRect(2,height-radius - 2,radius,radius), theme.Color(clrBorder), -3);
- pixmap->DrawEllipse(cRect(1,height-radius - 1,radius,radius), theme.Color(clrBackground), -3);
+ pixmap->DrawEllipse(cRect(1,height-radius - 1,radius,radius), clrTransparent, -3);
pixmap->DrawEllipse(cRect(width-radius - 2,height-radius - 2,radius,radius), theme.Color(clrBorder), -4);
- pixmap->DrawEllipse(cRect(width-radius - 1,height-radius - 1,radius,radius), theme.Color(clrBackground), -4);
+ pixmap->DrawEllipse(cRect(width-radius - 1,height-radius - 1,radius,radius), clrTransparent, -4);
}
}