GUI: Added SVG support to theme parser
This commit is contained in:
parent
37982f9eb4
commit
55ae2e4367
4 changed files with 8 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue