[Scummvm-cvs-logs] SF.net SVN: scummvm:[39849] scummvm/trunk/engines/kyra/gui_lol.cpp

athrxx at users.sourceforge.net athrxx at users.sourceforge.net
Sat Apr 4 18:41:27 CEST 2009


Revision: 39849
          http://scummvm.svn.sourceforge.net/scummvm/?rev=39849&view=rev
Author:   athrxx
Date:     2009-04-04 16:41:21 +0000 (Sat, 04 Apr 2009)

Log Message:
-----------
LOL: correct character portrait positioning for "full screen sequences" (like grey eagle inn) when playing without sub titles

Modified Paths:
--------------
    scummvm/trunk/engines/kyra/gui_lol.cpp

Modified: scummvm/trunk/engines/kyra/gui_lol.cpp
===================================================================
--- scummvm/trunk/engines/kyra/gui_lol.cpp	2009-04-04 16:13:52 UTC (rev 39848)
+++ scummvm/trunk/engines/kyra/gui_lol.cpp	2009-04-04 16:41:21 UTC (rev 39849)
@@ -500,11 +500,16 @@
 void LoLEngine::calcCharPortraitXpos() {
 	int nc = countActiveCharacters();
 
-	// TODO
+	if (_currentControlMode && !textEnabled()) {
+		int t = (280 - (nc * 33)) / (nc + 1);
+		for (int i = 0; i < nc; i++)
+			_activeCharsXpos[i] = i * 33 + t * (i + 1) + 10;
 
-	int t = (235 - (nc * 66)) / (nc + 1);
-	for (int i = 0; i < nc; i++)
-		_activeCharsXpos[i] = i * 66 + t * (i + 1) + 83;
+	} else {
+		int t = (235 - (nc * 66)) / (nc + 1);
+		for (int i = 0; i < nc; i++)
+			_activeCharsXpos[i] = i * 66 + t * (i + 1) + 83;
+	}
 }
 
 void LoLEngine::gui_drawMoneyBox(int pageNum) {


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