From 4f93ac2516dacdec5e142aaf60a06c6e1c16daf3 Mon Sep 17 00:00:00 2001 From: louis Date: Tue, 28 May 2013 17:23:33 +0200 Subject: avoided nasty font pixelation effects with theme iceblue --- headergrid.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'headergrid.c') 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; iWidth(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); } } -- cgit v1.2.3