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.
This commit is contained in:
2015-04-04 23:32:48 +02:00
parent 80457beaf6
commit 388ab3aa02
2 changed files with 2 additions and 2 deletions

View File

@@ -1663,7 +1663,7 @@ void CChannelList::showChannelLogo()
CChannelLogo->hide(); CChannelLogo->hide();
delete CChannelLogo; 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()){ if (CChannelLogo->hasLogo()){
int h_logo = CChannelLogo->getHeight(); int h_logo = CChannelLogo->getHeight();

View File

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