mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-31 17:31:11 +02:00
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:
@@ -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();
|
||||
|
Reference in New Issue
Block a user