From 388ab3aa02750cb1e7b1612e9a8dcab5692e5db6 Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Sat, 4 Apr 2015 23:32:48 +0200 Subject: [PATCH] CChannelList: use class for scalable channel logos Previous class used limited scale handling mainly with the member paintIcon() by framebuffer class. Because of many possible channel logo files, the icon cache was filled very fast. That was never considered in paintIcon() and caused strange behavior at screen, as no image data were assigned correctly. --- src/gui/channellist.cpp | 2 +- src/gui/channellist.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gui/channellist.cpp b/src/gui/channellist.cpp index d08569dc1..2da427a7b 100644 --- a/src/gui/channellist.cpp +++ b/src/gui/channellist.cpp @@ -1663,7 +1663,7 @@ void CChannelList::showChannelLogo() CChannelLogo->hide(); delete CChannelLogo; } - CChannelLogo = new CComponentsChannelLogo(0, 0, (*chanlist)[selected]->getName(), (*chanlist)[selected]->channel_id); + CChannelLogo = new CComponentsChannelLogoScalable(0, 0, (*chanlist)[selected]->getName(), (*chanlist)[selected]->channel_id); if (CChannelLogo->hasLogo()){ int h_logo = CChannelLogo->getHeight(); diff --git a/src/gui/channellist.h b/src/gui/channellist.h index 91ac932de..8d584e4eb 100644 --- a/src/gui/channellist.h +++ b/src/gui/channellist.h @@ -127,7 +127,7 @@ private: int ChannelList_Rec; - CComponentsChannelLogo* CChannelLogo; + CComponentsChannelLogoScalable* CChannelLogo; bool headerNew; void paintDetails(int index);