aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Schickel2008-12-04 12:21:31 +0000
committerJohannes Schickel2008-12-04 12:21:31 +0000
commit145fedba69c903e87d37b50dc889d92012e85d89 (patch)
treeb7b452f9545f433f44551e5bbb8056ffc5f43762
parent9b77e926db4090e001041dd7a8a33850d7fe8fdd (diff)
downloadscummvm-rg350-145fedba69c903e87d37b50dc889d92012e85d89.tar.gz
scummvm-rg350-145fedba69c903e87d37b50dc889d92012e85d89.tar.bz2
scummvm-rg350-145fedba69c903e87d37b50dc889d92012e85d89.zip
Fix for GUI compile error described in bug #2387217 "WINCE: SVN trunk compilation broken".
svn-id: r35235
-rw-r--r--backends/platform/wince/CELauncherDialog.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/backends/platform/wince/CELauncherDialog.cpp b/backends/platform/wince/CELauncherDialog.cpp
index f0dfda5ee4..7fb4f3a325 100644
--- a/backends/platform/wince/CELauncherDialog.cpp
+++ b/backends/platform/wince/CELauncherDialog.cpp
@@ -48,16 +48,18 @@ public:
// FIXME: Fingolfin asks: why is there a FIXME here? Please either clarify what
// needs fixing, or remove it!
- addButton(this,(_w - kButtonWidth) / 2, 45, "OK", kCloseCmd, '\r'); // Close dialog - FIXME
+ const int buttonWidth = g_gui.xmlEval()->getVar("Globals.Button.Width", 0);
+ const int buttonHeight = g_gui.xmlEval()->getVar("Globals.Button.Height", 0);
+ new ButtonWidget(this, (_w - buttonWidth) / 2, 45, buttonWidth, buttonHeight, "OK", kCloseCmd, '\r'); // Close dialog - FIXME
Common::String videoDriver("Using SDL driver ");
SDL_VideoDriverName(tempo, sizeof(tempo));
videoDriver += tempo;
- new StaticTextWidget(this, 0, 10, _w, kLineHeight, videoDriver, kTextAlignCenter);
+ new StaticTextWidget(this, 0, 10, _w, kLineHeight, videoDriver, Graphics::kTextAlignCenter);
Common::String displayInfos("Display ");
sprintf(tempo, "%dx%d (real %dx%d)", GetSystemMetrics(SM_CXSCREEN), GetSystemMetrics(SM_CYSCREEN), OSystem_WINCE3::getScreenWidth(), OSystem_WINCE3::getScreenHeight());
displayInfos += tempo;
- new StaticTextWidget(this, 0, 20, _w, kLineHeight, displayInfos, kTextAlignCenter);
+ new StaticTextWidget(this, 0, 20, _w, kLineHeight, displayInfos, Graphics::kTextAlignCenter);
}
};