summaryrefslogtreecommitdiff
path: root/timers.c
diff options
context:
space:
mode:
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;