GUI: RTL: Get internal widget RTL flag from theme
This commit is contained in:
parent
58704be218
commit
07ab77d065
12 changed files with 41 additions and 37 deletions
|
@ -41,12 +41,13 @@ GuiObject::~GuiObject() {
|
|||
void GuiObject::reflowLayout() {
|
||||
if (!_name.empty()) {
|
||||
int16 w, h;
|
||||
|
||||
if (!g_gui.xmlEval()->getWidgetData(_name, _x, _y, w, h) || w == -1 || h == -1) {
|
||||
bool useRTL = true;
|
||||
if (!g_gui.xmlEval()->getWidgetData(_name, _x, _y, w, h, useRTL) || w == -1 || h == -1) {
|
||||
error("Unable to load widget position for '%s'. Please check your theme files", _name.c_str());
|
||||
}
|
||||
_w = w;
|
||||
_h = h;
|
||||
_useRTL = useRTL;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue