GUI: RTL: Get internal widget RTL flag from theme

This commit is contained in:
aryanrawlani28 2020-05-22 20:01:19 +05:30 committed by Eugene Sandulenko
parent 58704be218
commit 07ab77d065
12 changed files with 41 additions and 37 deletions

View file

@ -493,7 +493,7 @@ void SaveLoadChooserSimple::reflowLayout() {
int16 x, y;
int16 w, h;
if (!g_gui.xmlEval()->getWidgetData("SaveLoadChooser.Thumbnail", x, y, w, h))
if (!g_gui.xmlEval()->getWidgetData("SaveLoadChooser.Thumbnail", x, y, w, h, _useRTL))
error("Error when loading position data for Save/Load Thumbnails");
// Even if there is no thumbnail support, getWidgetData() will provide default thumbnail values
@ -934,7 +934,7 @@ void SaveLoadChooserGrid::reflowLayout() {
int16 x, y;
int16 w;
if (!g_gui.xmlEval()->getWidgetData("SaveLoadChooser.List", x, y, w, availableHeight))
if (!g_gui.xmlEval()->getWidgetData("SaveLoadChooser.List", x, y, w, availableHeight, _useRTL))
error("Could not load widget position for 'SaveLoadChooser.List'");
const int16 buttonWidth = kThumbnailWidth + 6;