aboutsummaryrefslogtreecommitdiff
path: root/gui/ThemeEval.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'gui/ThemeEval.cpp')
-rw-r--r--gui/ThemeEval.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/gui/ThemeEval.cpp b/gui/ThemeEval.cpp
index 3729c1b499..d50564462c 100644
--- a/gui/ThemeEval.cpp
+++ b/gui/ThemeEval.cpp
@@ -67,7 +67,7 @@ bool ThemeEval::getWidgetData(const Common::String &widget, int16 &x, int16 &y,
}
-void ThemeEval::addWidget(const Common::String &name, int w, int h, const Common::String &type, bool enabled) {
+void ThemeEval::addWidget(const Common::String &name, int w, int h, const Common::String &type, bool enabled, Graphics::TextAlign align) {
int typeW = -1;
int typeH = -1;
@@ -82,6 +82,7 @@ void ThemeEval::addWidget(const Common::String &name, int w, int h, const Common
_curLayout.top()->addChild(widget);
setVar(_curDialog + "." + name + ".Enabled", enabled ? 1 : 0);
+ setVar(_curDialog + "." + name + ".Align", align);
}
void ThemeEval::addDialog(const Common::String &name, const Common::String &overlays, bool enabled, int inset) {