mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-30 08:51:10 +02:00
CChannelList: fix paint of unscaled images
Unscaled images were never painted.
This commit is contained in:
@@ -1672,10 +1672,10 @@ void CChannelList::showChannelLogo()
|
|||||||
CChannelLogo->setHeight(theight);
|
CChannelLogo->setHeight(theight);
|
||||||
int w_logo = h_ratio*CChannelLogo->getWidth()/100;
|
int w_logo = h_ratio*CChannelLogo->getWidth()/100;
|
||||||
CChannelLogo->setWidth(min(w_logo, logo_w_max));
|
CChannelLogo->setWidth(min(w_logo, logo_w_max));
|
||||||
|
}
|
||||||
CChannelLogo->setXPos(x + full_width - logo_off - CChannelLogo->getWidth());
|
CChannelLogo->setXPos(x + full_width - logo_off - CChannelLogo->getWidth());
|
||||||
CChannelLogo->setYPos(y + (theight - CChannelLogo->getHeight()) / 2);
|
CChannelLogo->setYPos(y + (theight - CChannelLogo->getHeight()) / 2);
|
||||||
CChannelLogo->paint();
|
CChannelLogo->paint();
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
delete CChannelLogo;
|
delete CChannelLogo;
|
||||||
CChannelLogo = NULL;
|
CChannelLogo = NULL;
|
||||||
|
Reference in New Issue
Block a user