From 7f7d7e57b5f9e5161628734639a6328de94e92a5 Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Sun, 12 Oct 2014 22:48:50 +0200 Subject: [PATCH] CChannelList: ensure down scaling if header height is too small Logo is initialized with width and height, but enforces in most cases upscaling of logo. Default now disabled scaling but if header too small, down scaling is enabled. Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/f499efa208ccc3ec84e68c4ddf4249f2e547622f Author: Thilo Graf Date: 2014-10-12 (Sun, 12 Oct 2014) ------------------ This commit was generated by Migit --- src/gui/channellist.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gui/channellist.cpp b/src/gui/channellist.cpp index 0ed285ebe..0add17c11 100644 --- a/src/gui/channellist.cpp +++ b/src/gui/channellist.cpp @@ -1666,6 +1666,7 @@ void CChannelList::showChannelLogo() CChannelLogo = new CComponentsChannelLogo(0, 0, logo_w_max, theight, (*chanlist)[selected]->getName(), (*chanlist)[selected]->channel_id); if (CChannelLogo->hasLogo()) { + CChannelLogo->doScale(theight < CChannelLogo->getHeight()); CChannelLogo->setXPos(x + full_width - logo_off - CChannelLogo->getWidth()); CChannelLogo->setYPos(y + (theight - CChannelLogo->getHeight()) / 2); CChannelLogo->paint();