[Scummvm-cvs-logs] CVS: scummvm/scumm string.cpp,1.102,1.103

Max Horn fingolfin at users.sourceforge.net
Sat Apr 26 09:52:02 CEST 2003


Update of /cvsroot/scummvm/scummvm/scumm
In directory sc8-pr-cvs1:/tmp/cvs-serv10795

Modified Files:
	string.cpp 
Log Message:
Erik's fix for text output in Loom (and Indy3?)

Index: string.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/string.cpp,v
retrieving revision 1.102
retrieving revision 1.103
diff -u -d -r1.102 -r1.103
--- string.cpp	22 Apr 2003 16:46:33 -0000	1.102
+++ string.cpp	26 Apr 2003 16:51:03 -0000	1.103
@@ -229,8 +229,11 @@
 		if (c == 13) {
 		newLine:;
 			if (_features & GF_AFTER_V3) {
-				_charset->_nextTop = 8;
-				_charset->_nextLeft = 0;
+				_charset->_nextTop += 8;
+				_charset->_nextLeft = _string[0].xpos;
+				if (_charset->_center) {
+					_charset->_nextLeft -= _charset->getStringWidth(0, buffer) >> 1;
+				}
 				continue;
 			} else {
 				_charset->_nextLeft = _string[0].xpos;





More information about the Scummvm-git-logs mailing list