summaryrefslogtreecommitdiff
path: root/epggrid.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 /epggrid.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 'epggrid.c')
-rw-r--r--epggrid.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/epggrid.c b/epggrid.c
index 2d8a703..7a21834 100644
--- a/epggrid.c
+++ b/epggrid.c
@@ -98,7 +98,13 @@ void cEpgGrid::setText() {
void cEpgGrid::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;