From 641ff8d28c55b2621261b8c0ad5657ccacada61c Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Wed, 5 Oct 2016 21:53:28 +0200 Subject: [PATCH] CMovieBrowser: add current content background color as image backkground Avoids transparent shadow artefacts during repaint of images Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/9d09bc36cebb07edb65d2657a4f3cee327276dcb Author: Thilo Graf Date: 2016-10-05 (Wed, 05 Oct 2016) ------------------ This commit was generated by Migit --- src/gui/moviebrowser/mb.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gui/moviebrowser/mb.cpp b/src/gui/moviebrowser/mb.cpp index 147db2845..bed284fa9 100644 --- a/src/gui/moviebrowser/mb.cpp +++ b/src/gui/moviebrowser/mb.cpp @@ -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);