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 /dummygrid.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 'dummygrid.c')
-rw-r--r-- | dummygrid.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/dummygrid.c b/dummygrid.c index 85e75b9..f2c5c03 100644 --- a/dummygrid.c +++ b/dummygrid.c @@ -58,23 +58,24 @@ void cDummyGrid::setText() { void cDummyGrid::drawText() { tColor colorText = (active)?theme.Color(clrFontActive):theme.Color(clrFont); + tColor colorTextBack = (tvguideConfig.useBlending==0)?color:clrTransparent; if (tvguideConfig.displayMode == eVertical) { if (Height()/tvguideConfig.minutePixel < 6) return; int textHeight = tvguideConfig.FontGrid->Height(); int textLines = text->Lines(); for (int i=0; i<textLines; i++) { - pixmap->DrawText(cPoint(borderWidth, borderWidth + i*textHeight), text->GetLine(i), colorText, clrTransparent, tvguideConfig.FontGrid); + pixmap->DrawText(cPoint(borderWidth, borderWidth + i*textHeight), text->GetLine(i), colorText, colorTextBack, tvguideConfig.FontGrid); } } else if (tvguideConfig.displayMode == eHorizontal) { if (Width()/tvguideConfig.minutePixel < 10) { int titleY = (tvguideConfig.rowHeight - tvguideConfig.FontGridHorizontal->Height())/2; - pixmap->DrawText(cPoint(borderWidth - 2, titleY), "...", colorText, clrTransparent, tvguideConfig.FontGridHorizontal); + pixmap->DrawText(cPoint(borderWidth - 2, titleY), "...", colorText, colorTextBack, tvguideConfig.FontGridHorizontal); return; } int titleY = (tvguideConfig.rowHeight - tvguideConfig.FontGridHorizontal->Height())/2; - pixmap->DrawText(cPoint(borderWidth, titleY), *strText, colorText, clrTransparent, tvguideConfig.FontGridHorizontal); + pixmap->DrawText(cPoint(borderWidth, titleY), *strText, colorText, colorTextBack, tvguideConfig.FontGridHorizontal); } } cString cDummyGrid::getText(void) { |