mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 16:31:11 +02:00
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:
@@ -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();
|
||||
|
@@ -127,7 +127,7 @@ private:
|
||||
|
||||
int ChannelList_Rec;
|
||||
|
||||
CComponentsChannelLogo* CChannelLogo;
|
||||
CComponentsChannelLogoScalable* CChannelLogo;
|
||||
bool headerNew;
|
||||
|
||||
void paintDetails(int index);
|
||||
|
Reference in New Issue
Block a user