[Scummvm-cvs-logs] SF.net SVN: scummvm: [22906] scummvm/trunk/gui/launcher.cpp

eriktorbjorn at users.sourceforge.net eriktorbjorn at users.sourceforge.net
Sun Jun 4 00:00:25 CEST 2006


Revision: 22906
Author:   eriktorbjorn
Date:     2006-06-03 15:00:20 -0700 (Sat, 03 Jun 2006)
ViewCVS:  http://svn.sourceforge.net/scummvm/?rev=22906&view=rev

Log Message:
-----------
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.

Modified Paths:
--------------
    scummvm/trunk/gui/launcher.cpp
Modified: scummvm/trunk/gui/launcher.cpp
===================================================================
--- scummvm/trunk/gui/launcher.cpp	2006-06-03 19:43:57 UTC (rev 22905)
+++ scummvm/trunk/gui/launcher.cpp	2006-06-03 22:00:20 UTC (rev 22906)
@@ -779,6 +779,7 @@
 	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 @@
 	} else {
 		StaticTextWidget *ver = (StaticTextWidget*)findWidget("launcher_version");
 		if (ver) {
+			ver->setAlign((Graphics::TextAlignment)g_gui.evaluator()->getVar("launcher_version.align"));
 			ver->setLabel(gScummVMFullVersion);
 		}
 


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