[Scummvm-cvs-logs] SF.net SVN: scummvm:[46193] scummvm/trunk/engines/sci/gui/gui_menu.cpp

m_kiewitz at users.sourceforge.net m_kiewitz at users.sourceforge.net
Sun Nov 29 14:42:14 CET 2009


Revision: 46193
          http://scummvm.svn.sourceforge.net/scummvm/?rev=46193&view=rev
Author:   m_kiewitz
Date:     2009-11-29 13:42:14 +0000 (Sun, 29 Nov 2009)

Log Message:
-----------
SCI/newgui: handling of right aligned menu text changed

Modified Paths:
--------------
    scummvm/trunk/engines/sci/gui/gui_menu.cpp

Modified: scummvm/trunk/engines/sci/gui/gui_menu.cpp
===================================================================
--- scummvm/trunk/engines/sci/gui/gui_menu.cpp	2009-11-29 13:08:40 UTC (rev 46192)
+++ scummvm/trunk/engines/sci/gui/gui_menu.cpp	2009-11-29 13:42:14 UTC (rev 46193)
@@ -191,9 +191,10 @@
 		if (rightAlignedPos) {
 			rightAlignedPos++;
 			tempPos = endPos;
-			//if (tagPos)
-			if (tagPos && tagPos >= rightAlignedPos)	// FIXME: sanity check for LB1 and KQ4
-				tempPos = tagPos;
+			// Shouldnt be needed at all, cause right aligned occurs after tag (hopefully)
+			//  If no game is found that causes problems, remove this line (29.11.2009)
+			//if (tagPos && tagPos >= rightAlignedPos)
+			//	tempPos = tagPos;
 			itemEntry->textRightAligned = Common::String(content.c_str() + rightAlignedPos, tempPos - rightAlignedPos);
 		}
 


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