diff options
Diffstat (limited to 'gui/ThemeParser.cpp')
-rw-r--r-- | gui/ThemeParser.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gui/ThemeParser.cpp b/gui/ThemeParser.cpp index a52e3592af..f92676a383 100644 --- a/gui/ThemeParser.cpp +++ b/gui/ThemeParser.cpp @@ -629,6 +629,17 @@ bool ThemeParser::parseDrawStep(ParserNode *stepNode, Graphics::DrawStep *drawst } } + if (stepNode->values.contains("clip")) { + val = stepNode->values["clip"]; + int cl, ct, cr, cb; + if (parseIntegerKey(val, 4, &cl, &ct, &cr, &cb)) { + drawstep->clip.left = cl; + drawstep->clip.top = ct; + drawstep->clip.right = cr; + drawstep->clip.bottom = cb; + } + } + #undef PARSER_ASSIGN_INT #undef PARSER_ASSIGN_RGB |