CMovieBrowser: consider small cover images

Should prevent oversized upscale of very small images. Maximal used size is the half height
of epg box.


Origin commit data
------------------
Branch: ni/coolstream
Commit: fb0210801a
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-02-05 (Fri, 05 Feb 2016)



------------------
This commit was generated by Migit
This commit is contained in:
2016-02-05 09:05:37 +01:00
parent be1a151712
commit 34d4dd4452

View File

@@ -1395,6 +1395,10 @@ void CMovieBrowser::refreshMovieInfo(void)
ly = m_cBoxFrameInfo.iY - 1 + (m_cBoxFrameInfo.iHeight-flogo_h)/2;
if (pic == NULL){ //TODO: paint custom covers with different ratio, currently only works with default ratio 16/9 or 4/3
pic = new CComponentsPicture(lx+2, ly+1, fname, NULL, CC_SHADOW_OFF, COL_MENUCONTENTSELECTED_PLUS_0);
if (pic->getHeight() < flogo_h/2){
flogo_h = flogo_h/2;
pic->setYPos(m_cBoxFrameInfo.iY - 1 + (m_cBoxFrameInfo.iHeight-flogo_h)/2);
}
pic->setHeight(flogo_h, true); /*flogo_w*/
pic->enableFrame(true, 2);
pic->enableCache();