summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlouis <louis.braun@gmx.de>2013-09-18 10:56:23 +0200
committerlouis <louis.braun@gmx.de>2013-09-18 10:56:23 +0200
commit11249b49a76a9d963a727a108e720d6bc98eec7c (patch)
treee72ffd6b03d89d56a71b267ab802325830c33a94
parent150767e987edd810053fbf44d8e840eb30930c6b (diff)
downloadskin-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--HISTORY2
-rw-r--r--timers.c7
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; 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);
}
}