GUI: RTL: Overload and simplify getWidgetData for getting rtl flag

This commit is contained in:
aryanrawlani28 2020-06-06 16:05:37 +05:30 committed by Eugene Sandulenko
parent 12a4af77bd
commit dde4200d35
6 changed files with 18 additions and 11 deletions

View file

@ -233,7 +233,7 @@ void ThemeLayoutMain::reflowLayout(Widget *widgetChain) {
_w = _defaultW > 0 ? MIN(_defaultW, g_system->getOverlayWidth()) : -1;
_h = _defaultH > 0 ? MIN(_defaultH, g_system->getOverlayHeight()) : -1;
} else {
if (!g_gui.xmlEval()->getWidgetData(_overlays, _x, _y, _w, _h, _useRTL)) {
if (!g_gui.xmlEval()->getWidgetData(_overlays, _x, _y, _w, _h)) {
warning("Unable to retrieve overlayed dialog position %s", _overlays.c_str());
}