diff options
author | louis <louis.braun@gmx.de> | 2013-05-28 17:23:33 +0200 |
---|---|---|
committer | louis <louis.braun@gmx.de> | 2013-05-28 17:23:33 +0200 |
commit | 4f93ac2516dacdec5e142aaf60a06c6e1c16daf3 (patch) | |
tree | 926faf2bc69438f1feb6e43be9f189f15387d9f4 /headergrid.c | |
parent | 6a6db7ff523943ec904ee85837b62885da64706e (diff) | |
download | vdr-plugin-tvguide-4f93ac2516dacdec5e142aaf60a06c6e1c16daf3.tar.gz vdr-plugin-tvguide-4f93ac2516dacdec5e142aaf60a06c6e1c16daf3.tar.bz2 |
avoided nasty font pixelation effects with theme iceblue
Diffstat (limited to 'headergrid.c')
-rw-r--r-- | headergrid.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/headergrid.c b/headergrid.c index 11f4b94..06e8b49 100644 --- a/headergrid.c +++ b/headergrid.c @@ -66,9 +66,10 @@ void cHeaderGrid::drawChannelHorizontal(const cChannel *channel) { textWidthMax -= logoWidth;
}
if (drawText) {
+ tColor colorTextBack = (tvguideConfig.useBlending==0)?color:clrTransparent;
cString strChannel = cString::sprintf("%d %s", channel->Number(), channel->Name());
strChannel = CutText(*strChannel, textWidthMax, tvguideConfig.FontChannelHeaderHorizontal).c_str();
- pixmap->DrawText(cPoint(textX, textY), *strChannel, theme.Color(clrFontHeader), clrTransparent, tvguideConfig.FontChannelHeaderHorizontal);
+ pixmap->DrawText(cPoint(textX, textY), *strChannel, theme.Color(clrFontHeader), colorTextBack, tvguideConfig.FontChannelHeaderHorizontal);
}
}
@@ -99,12 +100,13 @@ void cHeaderGrid::drawChannelVertical(const cChannel *channel) { }
if (!drawText)
return;
+ tColor colorTextBack = (tvguideConfig.useBlending==0)?color:clrTransparent;
for (int i=0; i<lines; i++) {
int textWidth = tvguideConfig.FontChannelHeader->Width(tw.GetLine(i));
int xText = (tvguideConfig.colWidth - textWidth) / 2;
if (xText < 0)
xText = 0;
- pixmap->DrawText(cPoint(xText, yStart + i*lineHeight), tw.GetLine(i), theme.Color(clrFontHeader), clrTransparent, tvguideConfig.FontChannelHeader);
+ pixmap->DrawText(cPoint(xText, yStart + i*lineHeight), tw.GetLine(i), theme.Color(clrFontHeader), colorTextBack, tvguideConfig.FontChannelHeader);
}
}
|