[Scummvm-cvs-logs] SF.net SVN: scummvm:[35235] scummvm/trunk/backends/platform/wince/ CELauncherDialog.cpp

lordhoto at users.sourceforge.net lordhoto at users.sourceforge.net
Thu Dec 4 13:21:31 CET 2008


Revision: 35235
          http://scummvm.svn.sourceforge.net/scummvm/?rev=35235&view=rev
Author:   lordhoto
Date:     2008-12-04 12:21:31 +0000 (Thu, 04 Dec 2008)

Log Message:
-----------
Fix for GUI compile error described in bug #2387217 "WINCE: SVN trunk compilation broken".

Modified Paths:
--------------
    scummvm/trunk/backends/platform/wince/CELauncherDialog.cpp

Modified: scummvm/trunk/backends/platform/wince/CELauncherDialog.cpp
===================================================================
--- scummvm/trunk/backends/platform/wince/CELauncherDialog.cpp	2008-12-04 11:59:30 UTC (rev 35234)
+++ scummvm/trunk/backends/platform/wince/CELauncherDialog.cpp	2008-12-04 12:21:31 UTC (rev 35235)
@@ -48,16 +48,18 @@
 
 		// 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);
 	}
 };
 


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list