From 11249b49a76a9d963a727a108e720d6bc98eec7c Mon Sep 17 00:00:00 2001 From: louis Date: Wed, 18 Sep 2013 10:56:23 +0200 Subject: fixed nasty font pixelation with non blending themes for timer display in main menu --- HISTORY | 2 ++ timers.c | 7 ++++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/HISTORY b/HISTORY index 5ad8bdd..7bfe267 100644 --- a/HISTORY +++ b/HISTORY @@ -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 diff --git a/timers.c b/timers.c index 46620d0..d71a6b9 100644 --- a/timers.c +++ b/timers.c @@ -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; lineDrawText(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); } } -- cgit v1.2.3