Fixed theming for game image dimensions.

This commit is contained in:
Aloshi 2012-10-13 18:51:35 -05:00
parent 8120fcb54d
commit 03995a66bb
2 changed files with 2 additions and 1 deletions

View file

@ -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);
}
}

View file

@ -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 = "";