summaryrefslogtreecommitdiff
path: root/timers.c
diff options
context:
space:
mode:
authorlouis <louis.braun@gmx.de>2013-02-20 15:24:00 +0100
committerlouis <louis.braun@gmx.de>2013-02-20 15:24:00 +0100
commitd60c6a242c76708b9e943ba141dbf80bb117b536 (patch)
tree2dc73757ad2c588038debbbd6f3835ddf01e1d6c /timers.c
parent498c2ad6c3e59784933960e3c7bb63c953f1a3d5 (diff)
downloadskin-nopacity-d60c6a242c76708b9e943ba141dbf80bb117b536.tar.gz
skin-nopacity-d60c6a242c76708b9e943ba141dbf80bb117b536.tar.bz2
Fixed display of timers channel name in main menu if no channel logo is available
Diffstat (limited to 'timers.c')
-rw-r--r--timers.c4
1 files changed, 2 insertions, 2 deletions
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);
}
}
}