summaryrefslogtreecommitdiff
path: root/footer.c
diff options
context:
space:
mode:
authorlouis <louis.braun@gmx.de>2013-05-28 17:23:33 +0200
committerlouis <louis.braun@gmx.de>2013-05-28 17:23:33 +0200
commit4f93ac2516dacdec5e142aaf60a06c6e1c16daf3 (patch)
tree926faf2bc69438f1feb6e43be9f189f15387d9f4 /footer.c
parent6a6db7ff523943ec904ee85837b62885da64706e (diff)
downloadvdr-plugin-tvguide-4f93ac2516dacdec5e142aaf60a06c6e1c16daf3.tar.gz
vdr-plugin-tvguide-4f93ac2516dacdec5e142aaf60a06c6e1c16daf3.tar.bz2
avoided nasty font pixelation effects with theme iceblue
Diffstat (limited to 'footer.c')
-rw-r--r--footer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/footer.c b/footer.c
index 554f8f1..9e40689 100644
--- a/footer.c
+++ b/footer.c
@@ -39,7 +39,7 @@ void cFooter::drawBlueButton() {
}
void cFooter::DrawButton(const char *text, tColor color, tColor borderColor, int num) {
-
+ tColor colorTextBack = (tvguideConfig.useBlending==0)?color:clrTransparent;
int left = num * buttonWidth + (num + 1) * buttonBorder;
footer->DrawRectangle(cRect(left, buttonY, buttonWidth, buttonHeight), borderColor);
if (tvguideConfig.useBlending) {
@@ -52,5 +52,5 @@ void cFooter::DrawButton(const char *text, tColor color, tColor borderColor, int
}
int textWidth = tvguideConfig.FontButton->Width(text);
int textHeight = tvguideConfig.FontButton->Height();
- footer->DrawText(cPoint(left + (buttonWidth-textWidth)/2, buttonY + (buttonHeight-textHeight)/2), text, theme.Color(clrFontButtons), clrTransparent, tvguideConfig.FontButton);
+ footer->DrawText(cPoint(left + (buttonWidth-textWidth)/2, buttonY + (buttonHeight-textHeight)/2), text, theme.Color(clrFontButtons), colorTextBack, tvguideConfig.FontButton);
} \ No newline at end of file