From 8f625c3d272ac1ab654230a81e9c43ab2e0df747 Mon Sep 17 00:00:00 2001 From: svenhoefer Date: Tue, 8 Nov 2016 22:00:51 +0100 Subject: [PATCH] - channellist: use small vertical offset around channellogo --- src/gui/channellist.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/gui/channellist.cpp b/src/gui/channellist.cpp index 55437a472..d3653cd80 100644 --- a/src/gui/channellist.cpp +++ b/src/gui/channellist.cpp @@ -1696,6 +1696,7 @@ void CChannelList::showChannelLogo() //TODO: move into an own handler, eg. heade return; if(g_settings.channellist_show_channellogo){ int logo_w_max = full_width / 4; + int logo_h_max = theight - 2*OFFSET_INNER_MIN; if (CChannelLogo) { if (headerNew) CChannelLogo->clearSavedScreen(); @@ -1707,8 +1708,8 @@ void CChannelList::showChannelLogo() //TODO: move into an own handler, eg. heade if (CChannelLogo->hasLogo()){ CChannelLogo->setWidth(min(CChannelLogo->getWidth(), logo_w_max), true); - if (CChannelLogo->getHeight() > theight) //scale image if required - CChannelLogo->setHeight(theight, true); + if (CChannelLogo->getHeight() > logo_h_max) + CChannelLogo->setHeight(logo_h_max, true); CChannelLogo->setXPos(x + full_width - logo_off - CChannelLogo->getWidth()); CChannelLogo->setYPos(y + (theight - CChannelLogo->getHeight()) / 2); CChannelLogo->paint();