aboutsummaryrefslogtreecommitdiff
path: root/gui/launcher.cpp
diff options
context:
space:
mode:
authorTorbjörn Andersson2006-06-11 21:26:43 +0000
committerTorbjörn Andersson2006-06-11 21:26:43 +0000
commit0be035e47079290141171ca4cfc97b61d736d847 (patch)
tree6c500e04f5d9417c308b0cf64f1f414b94bfe661 /gui/launcher.cpp
parent4867a75918d11d19eec59d955109455cb4a36432 (diff)
downloadscummvm-rg350-0be035e47079290141171ca4cfc97b61d736d847.tar.gz
scummvm-rg350-0be035e47079290141171ca4cfc97b61d736d847.tar.bz2
scummvm-rg350-0be035e47079290141171ca4cfc97b61d736d847.zip
Re-calculate the label width for EditGameDialog's language and platform pop-ups
when the screen changes. svn-id: r23034
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();