summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--HISTORY2
-rw-r--r--timers.c4
2 files changed, 4 insertions, 2 deletions
diff --git a/HISTORY b/HISTORY
index 6d85512..81a48df 100644
--- a/HISTORY
+++ b/HISTORY
@@ -137,3 +137,5 @@ Version 0.0.7:
- Fixed a bug with cdplayer plugin, this plugin calls no "clear()" before
showing menu
- disabled fading for displaymenu per default
+- Fixed display of timers channel name in main menu if no channel logo
+ is available
diff --git a/timers.c b/timers.c
index ed24581..9a9288e 100644
--- a/timers.c
+++ b/timers.c
@@ -156,12 +156,12 @@ void cNopacityTimer::DrawLogo(void) {
pixmapLogo->DrawImage(cPoint((width - logoWidth)/2, 1), imgLoader.GetImage());
} else {
cTextWrapper channel;
- channel.Set(Channel->Name(), font, logoWidth);
+ channel.Set(Channel->Name(), font, width - 10);
int lines = channel.Lines();
int lineHeight = font->Height();
int y = 1;
for (int line = 0; line < lines; line++) {
- pixmapLogo->DrawText(cPoint((logoWidth - font->Width(channel.GetLine(line)))/2, y+lineHeight*line), channel.GetLine(line), Theme.Color(clrMenuFontMenuItemHigh), clrTransparent, font);
+ pixmapLogo->DrawText(cPoint((width - font->Width(channel.GetLine(line)))/2, y+lineHeight*line), channel.GetLine(line), Theme.Color(clrMenuFontMenuItemHigh), clrTransparent, font);
}
}
}