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:
2014-11-06 16:14:01 +01:00
parent 928053c68e
commit 9c73fdcad1

View File

@@ -1267,6 +1267,7 @@ void CMovieBrowser::refreshMovieInfo(void)
if (CChannelLogo && CChannelLogo->hasLogo()) {
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;
CChannelLogo->doScale(m_cBoxFrameTitleRel.iHeight < CChannelLogo->getHeight());
CChannelLogo->setXPos(lx - pb_hdd_offset);
CChannelLogo->setYPos(ly);
CChannelLogo->paint();