summaryrefslogtreecommitdiff
path: root/timers.c
diff options
context:
space:
mode:
authorlouis <louis.braun@gmx.de>2013-09-18 11:28:07 +0200
committerlouis <louis.braun@gmx.de>2013-09-18 11:28:07 +0200
commit09d3149e01805ccf67f88eabed06d21fef19560c (patch)
tree2011fea6623b697f5619c8ad9c3fdd2b94a94b22 /timers.c
parent866ed3e9b3d4d29fc8adb2bde5732a1cf3489e07 (diff)
downloadskin-nopacity-09d3149e01805ccf67f88eabed06d21fef19560c.tar.gz
skin-nopacity-09d3149e01805ccf67f88eabed06d21fef19560c.tar.bz2
display of channel logo in main menu timer display configurable
Diffstat (limited to 'timers.c')
-rw-r--r--timers.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/timers.c b/timers.c
index b261d78..e2627de 100644
--- a/timers.c
+++ b/timers.c
@@ -168,14 +168,15 @@ void cNopacityTimer::Render(void) {
void cNopacityTimer::DrawLogo(void) {
pixmapLogo->Fill(clrTransparent);
+ int showTimerLogo = (config.showTimers < 2) ? 1 : 0;
int logoWidth = config.timersLogoWidth;
int logoHeight = config.timersLogoHeight;
const cChannel *Channel = timer->Channel();
if (Channel && Channel->Name()) {
cImageLoader imgLoader;
- if (imgLoader.LoadLogo(Channel->Name(), logoWidth, logoHeight)) {
+ if (showTimerLogo && imgLoader.LoadLogo(Channel->Name(), logoWidth, logoHeight)) {
pixmapLogo->DrawImage(cPoint((width - logoWidth)/2, 1), imgLoader.GetImage());
- } else if (imgLoader.LoadLogo(*(Channel->GetChannelID().ToString()), logoWidth, logoHeight)) {
+ } else if (showTimerLogo && imgLoader.LoadLogo(*(Channel->GetChannelID().ToString()), logoWidth, logoHeight)) {
pixmapLogo->DrawImage(cPoint((width - logoWidth)/2, 1), imgLoader.GetImage());
} else {
cTextWrapper channel;