From 09d3149e01805ccf67f88eabed06d21fef19560c Mon Sep 17 00:00:00 2001 From: louis Date: Wed, 18 Sep 2013 11:28:07 +0200 Subject: display of channel logo in main menu timer display configurable --- timers.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'timers.c') 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; -- cgit v1.2.3