diff --git a/gui/ThemeParser.cpp b/gui/ThemeParser.cpp index a0bfd1c29cf..1546e577f84 100644 --- a/gui/ThemeParser.cpp +++ b/gui/ThemeParser.cpp @@ -298,7 +298,11 @@ bool ThemeParser::parserCallback_bitmap(ParserNode *node) { return true; } - if (!_theme->addBitmap(node->values["filename"])) + Common::String scalableFile; + if (node->values.contains("scalable_file")) + scalableFile = node->values["scalable_file"]; + + if (!_theme->addBitmap(node->values["filename"], scalableFile)) return parserError("Error loading Bitmap file '" + node->values["filename"] + "'"); return true; diff --git a/gui/ThemeParser.h b/gui/ThemeParser.h index d5d354941f3..18b7f298eeb 100644 --- a/gui/ThemeParser.h +++ b/gui/ThemeParser.h @@ -91,6 +91,7 @@ protected: XML_KEY(bitmap) XML_PROP(filename, true) XML_PROP(resolution, false) + XML_PROP(scalable_file, false) KEY_END() XML_KEY(alphabitmap) XML_PROP(filename, true) diff --git a/gui/themes/scummremastered/remastered_gfx.stx b/gui/themes/scummremastered/remastered_gfx.stx index 6ee411a76ad..d4f3c3cdec6 100644 --- a/gui/themes/scummremastered/remastered_gfx.stx +++ b/gui/themes/scummremastered/remastered_gfx.stx @@ -102,7 +102,7 @@ - + diff --git a/gui/themes/scummtheme.py b/gui/themes/scummtheme.py index b5cf79dfdac..dec7fe55b85 100755 --- a/gui/themes/scummtheme.py +++ b/gui/themes/scummtheme.py @@ -5,7 +5,7 @@ import re import os import zipfile -THEME_FILE_EXTENSIONS = ('.stx', '.bmp', '.fcc', '.ttf', '.png') +THEME_FILE_EXTENSIONS = ('.stx', '.bmp', '.fcc', '.ttf', '.png', '.svg') def buildTheme(themeName): if not os.path.isdir(themeName) or not os.path.isfile(os.path.join(themeName, "THEMERC")):