From a47a5cd422b2df4180aa0b91bdfc34ba6de6e86c Mon Sep 17 00:00:00 2001 From: svenhoefer Date: Sat, 12 Nov 2016 22:03:05 +0100 Subject: [PATCH] - moviebrowser: limit cover to one third of m_cBoxFrameInfo1 width --- src/gui/moviebrowser/mb.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gui/moviebrowser/mb.cpp b/src/gui/moviebrowser/mb.cpp index 7cde3f83e..a021f4ad0 100644 --- a/src/gui/moviebrowser/mb.cpp +++ b/src/gui/moviebrowser/mb.cpp @@ -1402,6 +1402,8 @@ TRACE("[mb]->%s:%d m_movieCover->getHeight(): %d\n", __func__, __LINE__, m_movie m_movieCover->setWidth(0); // force recalculation TRACE("[mb]->%s:%d m_movieCover->getWidth(): %d\n", __func__, __LINE__, m_movieCover->getWidth()); m_movieCover->setHeight(cover_h, true); + if (m_movieCover->getWidth() > movieCoverBox.iWidth/3) + m_movieCover->setWidth(movieCoverBox.iWidth/3, true); // use maximal one third of box width m_movieCover->setXPos(movieCoverBox.iX + movieCoverBox.iWidth - m_movieCover->getWidth() - 2*OFFSET_INNER_MID - OFFSET_SHADOW); m_movieCover->setYPos(movieCoverBox.iY + (movieCoverBox.iHeight - m_movieCover->getHeight())/2);