aboutsummaryrefslogtreecommitdiff
path: root/gui/launcher.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'gui/launcher.cpp')
-rw-r--r--gui/launcher.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/gui/launcher.cpp b/gui/launcher.cpp
index c78f95e306..4995fce5ea 100644
--- a/gui/launcher.cpp
+++ b/gui/launcher.cpp
@@ -117,6 +117,8 @@ class EditGameDialog : public OptionsDialog {
public:
EditGameDialog(const String &domain, const String &desc);
+ virtual void handleScreenChanged();
+
void open();
void close();
virtual void handleCommand(CommandSender *sender, uint32 cmd, uint32 data);
@@ -260,6 +262,17 @@ EditGameDialog::EditGameDialog(const String &domain, const String &desc)
new ButtonWidget(this, "gameoptions_ok", "OK", kOKCmd, 0);
}
+void EditGameDialog::handleScreenChanged() {
+ OptionsDialog::handleScreenChanged();
+
+ int labelWidth = g_gui.evaluator()->getVar("gameOptionsLabelWidth");
+
+ if (_langPopUp)
+ _langPopUp->changeLabelWidth(labelWidth);
+ if (_platformPopUp)
+ _platformPopUp->changeLabelWidth(labelWidth);
+}
+
void EditGameDialog::open() {
OptionsDialog::open();