diff options
author | louis <louis.braun@gmx.de> | 2013-09-18 10:56:23 +0200 |
---|---|---|
committer | louis <louis.braun@gmx.de> | 2013-09-18 10:56:23 +0200 |
commit | 11249b49a76a9d963a727a108e720d6bc98eec7c (patch) | |
tree | e72ffd6b03d89d56a71b267ab802325830c33a94 | |
parent | 150767e987edd810053fbf44d8e840eb30930c6b (diff) | |
download | skin-nopacity-11249b49a76a9d963a727a108e720d6bc98eec7c.tar.gz skin-nopacity-11249b49a76a9d963a727a108e720d6bc98eec7c.tar.bz2 |
fixed nasty font pixelation with non blending themes for timer display in main menu
-rw-r--r-- | HISTORY | 2 | ||||
-rw-r--r-- | timers.c | 7 |
2 files changed, 6 insertions, 3 deletions
@@ -284,3 +284,5 @@ Version 0.1.4 folders. If a manual poster is found, all tvscraper information is ignored. - changed narrow recordings menu style - improved function to float text around poster in textwindow +- fixed nasty font pixelation with non blending themes for timer display in + main menu @@ -114,6 +114,7 @@ void cNopacityTimer::CreatePixmaps(int x) { void cNopacityTimer::Render(void) { pixmapBackground->Fill(clrBlack); cImageLoader imgLoader; + tColor clrFontBack = (config.doBlending)?clrTransparent:Theme.Color(clrTimersBack); if (isTimerConflict) { pixmapLogo->Fill(clrTransparent); pixmap->Fill(Theme.Color(clrDiskAlert)); @@ -131,7 +132,7 @@ void cNopacityTimer::Render(void) { textWidth = fontLarge->Width(showName.GetLine(line)); x = (width - textWidth)/2; y += line*fontLarge->Height(); - pixmap->DrawText(cPoint(x, y), showName.GetLine(line), Theme.Color(clrMenuFontTimersHeader), clrTransparent, fontLarge); + pixmap->DrawText(cPoint(x, y), showName.GetLine(line), Theme.Color(clrMenuFontTimersHeader), clrFontBack, fontLarge); } } else { DrawLogo(); @@ -153,13 +154,13 @@ void cNopacityTimer::Render(void) { } } - pixmap->DrawText(cPoint(5, config.timersLogoHeight), *Date, Theme.Color(clrMenuFontTimersHeader), clrTransparent, fontLarge); + pixmap->DrawText(cPoint(5, config.timersLogoHeight), *Date, Theme.Color(clrMenuFontTimersHeader), clrFontBack, fontLarge); int lineHeight = font->Height(); int yStart = config.timersLogoHeight + lineHeight + 3; int numLines = showName.Lines(); for (int line=0; line<numLines; line++) - pixmap->DrawText(cPoint(5, yStart+line*(lineHeight-2)), showName.GetLine(line), Theme.Color(clrMenuFontTimers), clrTransparent, font); + pixmap->DrawText(cPoint(5, yStart+line*(lineHeight-2)), showName.GetLine(line), Theme.Color(clrMenuFontTimers), clrFontBack, font); } } |