CMovieBrowser: fix unintended upscaling of channellogo

Upscale is not allowed and do down scale only if header height is too small.
This commit is contained in:
2014-11-06 16:14:01 +01:00
parent 66e5f03c92
commit bee35e9042

View File

@@ -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();