Fix missing track icon on track info screen not being themed

Also fixes the aspect ratio and increases the resolution.
This commit is contained in:
QwertyChouskie 2020-03-28 15:57:03 -07:00
parent 6991305b71
commit da5cbee577
2 changed files with 1 additions and 6 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.2 KiB

View File

@ -159,17 +159,12 @@ void TrackInfoScreen::init()
// ---- Track screenshot
GUIEngine::IconButtonWidget* screenshot = getWidget<IconButtonWidget>("screenshot");
// images are saved squared, but must be stretched to 4:
// temporary icon, will replace it just after (but it will be shown if the given icon is not found)
screenshot->m_properties[PROP_ICON] = "gui/icons/main_help.png";
ITexture* image = STKTexManager::getInstance()
->getTexture(m_track->getScreenshotFile(),
"While loading screenshot for track '%s':", m_track->getFilename());
if(!image)
{
image = STKTexManager::getInstance()->getTexture("main_help.png",
image = STKTexManager::getInstance()->getTexture(GUIEngine::getSkin()->getThemedIcon("gui/icons/track_unknown.png"),
"While loading screenshot for track '%s':", m_track->getFilename());
}
if (image != NULL)