summaryrefslogtreecommitdiff
path: root/dummygrid.c
diff options
context:
space:
mode:
authorlouis <louis.braun@gmx.de>2014-01-29 17:38:51 +0100
committerlouis <louis.braun@gmx.de>2014-01-29 17:38:51 +0100
commit5f1d939464f631f9a9a87ec2c34bf369f3d4c25b (patch)
tree43478ca47cc06bce4234e9b91121fcc0f3dc7089 /dummygrid.c
parent26f46355f9fb20b3921d1188c7084dcaa2b838d4 (diff)
downloadvdr-plugin-tvguide-5f1d939464f631f9a9a87ec2c34bf369f3d4c25b.tar.gz
vdr-plugin-tvguide-5f1d939464f631f9a9a87ec2c34bf369f3d4c25b.tar.bz2
added dedicated font background color for grids in graphical themes to avoid font pixelation
Diffstat (limited to 'dummygrid.c')
-rw-r--r--dummygrid.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/dummygrid.c b/dummygrid.c
index 4ab0692..2ab9056 100644
--- a/dummygrid.c
+++ b/dummygrid.c
@@ -66,7 +66,13 @@ void cDummyGrid::setText() {
void cDummyGrid::drawText() {
tColor colorText = (active)?theme.Color(clrFontActive):theme.Color(clrFont);
- tColor colorTextBack = (tvguideConfig.style == eStyleFlat)?color:clrTransparent;
+ tColor colorTextBack;
+ if (tvguideConfig.style == eStyleFlat)
+ colorTextBack = color;
+ else if (tvguideConfig.style == eStyleGraphical)
+ colorTextBack = (active)?theme.Color(clrGridActiveFontBack):theme.Color(clrGridFontBack);
+ else
+ colorTextBack = clrTransparent;
if (tvguideConfig.displayMode == eVertical) {
if (Height()/geoManager.minutePixel < 6)
return;