diff options
author | louis <louis.braun@gmx.de> | 2013-09-18 11:28:07 +0200 |
---|---|---|
committer | louis <louis.braun@gmx.de> | 2013-09-18 11:28:07 +0200 |
commit | 09d3149e01805ccf67f88eabed06d21fef19560c (patch) | |
tree | 2011fea6623b697f5619c8ad9c3fdd2b94a94b22 /timers.c | |
parent | 866ed3e9b3d4d29fc8adb2bde5732a1cf3489e07 (diff) | |
download | skin-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.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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; |