mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-28 16:01:10 +02:00
CMovieBrowser: add current content background color as image backkground
Avoids transparent shadow artefacts during repaint of images
Origin commit data
------------------
Branch: ni/coolstream
Commit: 9d09bc36ce
Author: Thilo Graf <dbt@novatux.de>
Date: 2016-10-05 (Wed, 05 Oct 2016)
------------------
This commit was generated by Migit
This commit is contained in:
@@ -1314,7 +1314,8 @@ void CMovieBrowser::refreshMovieInfo(void)
|
||||
lx = m_cBoxFrameInfo.iX + m_cBoxFrameBrowserList.iWidth - flogo_w -14;
|
||||
ly = m_cBoxFrameInfo.iY + (m_cBoxFrameInfo.iHeight-flogo_h)/2;
|
||||
if (pic == NULL){ //TODO: paint custom covers with different ratio, currently only works with default ratio HD 16/9
|
||||
pic = new CComponentsPicture(lx, ly, fname, NULL, CC_SHADOW_ON, COL_MENUCONTENTDARK_PLUS_0);
|
||||
pic = new CComponentsPicture(lx, ly, fname, NULL, CC_SHADOW_ON, COL_MENUCONTENTDARK_PLUS_0, COL_MENUCONTENT_PLUS_0);
|
||||
|
||||
if (pic->getHeight() < flogo_h/2){
|
||||
flogo_h = flogo_h/2;
|
||||
pic->setYPos(m_cBoxFrameInfo.iY + (m_cBoxFrameInfo.iHeight-flogo_h)/2);
|
||||
|
Reference in New Issue
Block a user