From 03995a66bb6fc75a1f4399ec82c48288c68d9819 Mon Sep 17 00:00:00 2001 From: Aloshi Date: Sat, 13 Oct 2012 18:51:35 -0500 Subject: [PATCH] Fixed theming for game image dimensions. --- src/components/GuiGameList.cpp | 1 + src/components/GuiTheme.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/GuiGameList.cpp b/src/components/GuiGameList.cpp index c0e3cb32a..f9275589d 100644 --- a/src/components/GuiGameList.cpp +++ b/src/components/GuiGameList.cpp @@ -228,6 +228,7 @@ void GuiGameList::updateTheme() mScreenshot->setOffsetX(mTheme->getGameImageOffsetX() * Renderer::getScreenWidth()); mScreenshot->setOffsetY(mTheme->getGameImageOffsetY() * Renderer::getScreenHeight()); mScreenshot->setOrigin(mTheme->getGameImageOriginX(), mTheme->getGameImageOriginY()); + mScreenshot->setResize(mTheme->getGameImageWidth(), mTheme->getGameImageHeight(), false); } } diff --git a/src/components/GuiTheme.cpp b/src/components/GuiTheme.cpp index 7d7681b2d..680053e77 100644 --- a/src/components/GuiTheme.cpp +++ b/src/components/GuiTheme.cpp @@ -66,7 +66,7 @@ void GuiTheme::setDefaults() mGameImageOriginY = 0; mGameImageOffsetX = mListOffsetX / 2; mGameImageOffsetY = (float)Renderer::getFontHeight(Renderer::LARGE) / Renderer::getScreenHeight(); - mGameImageWidth = 0; + mGameImageWidth = mListOffsetX; mGameImageHeight = 0; mBoxData.backgroundPath = "";