aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Schickel2013-02-03 00:35:20 +0100
committerJohannes Schickel2013-02-03 00:43:32 +0100
commit1115c2b323717311e2192e23318338103bc0e4f4 (patch)
tree2f1e649edd72a7d0d0f77bd362564ade85b06b2f
parent8ae324f50c874717c1949fe9f386c0d622117282 (diff)
downloadscummvm-rg350-1115c2b323717311e2192e23318338103bc0e4f4.tar.gz
scummvm-rg350-1115c2b323717311e2192e23318338103bc0e4f4.tar.bz2
scummvm-rg350-1115c2b323717311e2192e23318338103bc0e4f4.zip
GUI: Fix text alignment for the version in the launcher.
Formerly in LauncherDialog::reflowLayout an incorrect way to query the acutal text alignment was used for the static text widget used for the ScummVM version.
-rw-r--r--gui/launcher.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/gui/launcher.cpp b/gui/launcher.cpp
index 0f4867ced5..4e35b54db8 100644
--- a/gui/launcher.cpp
+++ b/gui/launcher.cpp
@@ -1128,7 +1128,7 @@ void LauncherDialog::reflowLayout() {
if (g_gui.xmlEval()->getVar("Globals.ShowLauncherLogo") == 1 && g_gui.theme()->supportsImages()) {
StaticTextWidget *ver = (StaticTextWidget *)findWidget("Launcher.Version");
if (ver) {
- ver->setAlign((Graphics::TextAlign)g_gui.xmlEval()->getVar("Launcher.Version.Align", Graphics::kTextAlignCenter));
+ ver->setAlign(g_gui.xmlEval()->getWidgetTextHAlign("Launcher.Version"));
ver->setLabel(gScummVMVersionDate);
}
@@ -1139,7 +1139,7 @@ void LauncherDialog::reflowLayout() {
} else {
StaticTextWidget *ver = (StaticTextWidget *)findWidget("Launcher.Version");
if (ver) {
- ver->setAlign((Graphics::TextAlign)g_gui.xmlEval()->getVar("Launcher.Version.Align", Graphics::kTextAlignCenter));
+ ver->setAlign(g_gui.xmlEval()->getWidgetTextHAlign("Launcher.Version"));
ver->setLabel(gScummVMFullVersion);
}