aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTorbjörn Andersson2006-06-03 22:00:20 +0000
committerTorbjörn Andersson2006-06-03 22:00:20 +0000
commit3e72e5c9e0dcd8d848887fcc1b4a1ba325acd8d1 (patch)
treee886cd8182f3e3959a7142c06e783bd93a27a65f
parent7b2362702fd1dd34f77ecb3bc51dcd7bd73d3653 (diff)
downloadscummvm-rg350-3e72e5c9e0dcd8d848887fcc1b4a1ba325acd8d1.tar.gz
scummvm-rg350-3e72e5c9e0dcd8d848887fcc1b4a1ba325acd8d1.tar.bz2
scummvm-rg350-3e72e5c9e0dcd8d848887fcc1b4a1ba325acd8d1.zip
Re-align the launcher version string when the screen changes. It could be
argued that the widget should do this automagically, but in most cases they should probably keep the same alignment at all resolutions, so this is the exception that (dis)proves the rule. svn-id: r22906
-rw-r--r--gui/launcher.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/gui/launcher.cpp b/gui/launcher.cpp
index 94a0b770be..c78f95e306 100644
--- a/gui/launcher.cpp
+++ b/gui/launcher.cpp
@@ -779,6 +779,7 @@ void LauncherDialog::handleScreenChanged() {
if (g_gui.evaluator()->getVar("launcher_logo.visible") == 1) {
StaticTextWidget *ver = (StaticTextWidget*)findWidget("launcher_version");
if (ver) {
+ ver->setAlign((Graphics::TextAlignment)g_gui.evaluator()->getVar("launcher_version.align"));
ver->setLabel(gScummVMVersionDate);
}
@@ -791,6 +792,7 @@ void LauncherDialog::handleScreenChanged() {
} else {
StaticTextWidget *ver = (StaticTextWidget*)findWidget("launcher_version");
if (ver) {
+ ver->setAlign((Graphics::TextAlignment)g_gui.evaluator()->getVar("launcher_version.align"));
ver->setLabel(gScummVMFullVersion);
}