mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-31 17:31:11 +02:00
CMovieBrowser:try to fix cover position and ratio for custom covers
TODO: 4:3 screenshot are still broken
Signed-off-by: M. Liebmann <tuxcode.bbg@gmail.com>
Origin commit data
------------------
Branch: ni/coolstream
Commit: 7783ee684f
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-01-19 (Tue, 19 Jan 2016)
------------------
This commit was generated by Migit
This commit is contained in:
@@ -1401,13 +1401,15 @@ void CMovieBrowser::refreshMovieInfo(void)
|
||||
lx = m_cBoxFrameInfo.iX+m_cBoxFrameInfo.iWidth - flogo_w -14;
|
||||
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, flogo_w, flogo_h, fname, NULL, CC_SHADOW_OFF, COL_MENUCONTENTSELECTED_PLUS_0);
|
||||
pic = new CComponentsPicture(lx+2, ly+1, fname, NULL, CC_SHADOW_OFF, COL_MENUCONTENTSELECTED_PLUS_0);
|
||||
pic->setHeight(flogo_h, true); /*flogo_w*/
|
||||
pic->enableFrame(true, 2);
|
||||
pic->enableCache();
|
||||
pic->doPaintBg(false);
|
||||
}else
|
||||
pic->setPicture(fname);
|
||||
|
||||
flogo_w = pic->getWidth();
|
||||
pic->setXPos(m_cBoxFrameInfo.iX+m_cBoxFrameInfo.iWidth - flogo_w -12);
|
||||
if (!m_movieSelectionHandler->epgInfo2.empty())
|
||||
m_pcInfo->OnAfterScrollPage.connect(sigc::mem_fun(pic, &CComponentsPicture::paint0));
|
||||
}else{
|
||||
|
Reference in New Issue
Block a user