mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-30 17:01:08 +02:00
CMovieBrowser: fix unintended upscaling of channellogo
Upscale is not allowed and do down scale only if header height is too small.
Origin commit data
------------------
Branch: ni/coolstream
Commit: bee35e9042
Author: Thilo Graf <dbt@novatux.de>
Date: 2014-11-06 (Thu, 06 Nov 2014)
------------------
This commit was generated by Migit
This commit is contained in:
@@ -1267,6 +1267,7 @@ void CMovieBrowser::refreshMovieInfo(void)
|
|||||||
if (CChannelLogo && CChannelLogo->hasLogo()) {
|
if (CChannelLogo && CChannelLogo->hasLogo()) {
|
||||||
lx = m_cBoxFrame.iX+m_cBoxFrameTitleRel.iX+m_cBoxFrameTitleRel.iWidth-CChannelLogo->getWidth()-10;
|
lx = m_cBoxFrame.iX+m_cBoxFrameTitleRel.iX+m_cBoxFrameTitleRel.iWidth-CChannelLogo->getWidth()-10;
|
||||||
ly = m_cBoxFrameTitleRel.iY+m_cBoxFrame.iY+ (m_cBoxFrameTitleRel.iHeight-CChannelLogo->getHeight())/2;
|
ly = m_cBoxFrameTitleRel.iY+m_cBoxFrame.iY+ (m_cBoxFrameTitleRel.iHeight-CChannelLogo->getHeight())/2;
|
||||||
|
CChannelLogo->doScale(m_cBoxFrameTitleRel.iHeight < CChannelLogo->getHeight());
|
||||||
CChannelLogo->setXPos(lx - pb_hdd_offset);
|
CChannelLogo->setXPos(lx - pb_hdd_offset);
|
||||||
CChannelLogo->setYPos(ly);
|
CChannelLogo->setYPos(ly);
|
||||||
CChannelLogo->paint();
|
CChannelLogo->paint();
|
||||||
|
Reference in New Issue
Block a user