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.


Origin commit data
------------------
Branch: ni/coolstream
Commit: 388ab3aa02
Author: Thilo Graf <dbt@novatux.de>
Date: 2015-04-04 (Sat, 04 Apr 2015)



------------------
This commit was generated by Migit
This commit is contained in:
2015-04-04 23:32:48 +02:00
parent 8ddfb1beda
commit 89fb6d23ad
2 changed files with 2 additions and 2 deletions

View File

@@ -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();

View File

@@ -127,7 +127,7 @@ private:
int ChannelList_Rec;
CComponentsChannelLogo* CChannelLogo;
CComponentsChannelLogoScalable* CChannelLogo;
bool headerNew;
void paintDetails(int index);