mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 16:31:11 +02:00
- channellist: use small vertical offset around channellogo
This commit is contained in:
@@ -1696,6 +1696,7 @@ void CChannelList::showChannelLogo() //TODO: move into an own handler, eg. heade
|
|||||||
return;
|
return;
|
||||||
if(g_settings.channellist_show_channellogo){
|
if(g_settings.channellist_show_channellogo){
|
||||||
int logo_w_max = full_width / 4;
|
int logo_w_max = full_width / 4;
|
||||||
|
int logo_h_max = theight - 2*OFFSET_INNER_MIN;
|
||||||
if (CChannelLogo) {
|
if (CChannelLogo) {
|
||||||
if (headerNew)
|
if (headerNew)
|
||||||
CChannelLogo->clearSavedScreen();
|
CChannelLogo->clearSavedScreen();
|
||||||
@@ -1707,8 +1708,8 @@ void CChannelList::showChannelLogo() //TODO: move into an own handler, eg. heade
|
|||||||
|
|
||||||
if (CChannelLogo->hasLogo()){
|
if (CChannelLogo->hasLogo()){
|
||||||
CChannelLogo->setWidth(min(CChannelLogo->getWidth(), logo_w_max), true);
|
CChannelLogo->setWidth(min(CChannelLogo->getWidth(), logo_w_max), true);
|
||||||
if (CChannelLogo->getHeight() > theight) //scale image if required
|
if (CChannelLogo->getHeight() > logo_h_max)
|
||||||
CChannelLogo->setHeight(theight, true);
|
CChannelLogo->setHeight(logo_h_max, true);
|
||||||
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();
|
||||||
|
Reference in New Issue
Block a user