GUI: Added SVG support to theme parser

This commit is contained in:
Eugene Sandulenko 2021-04-04 21:48:07 +02:00
parent 37982f9eb4
commit 55ae2e4367
4 changed files with 8 additions and 3 deletions

View file

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