[Scummvm-cvs-logs] CVS: scummvm/scumm string.cpp,1.3,1.4

Max Horn fingolfin at users.sourceforge.net
Sat Aug 31 06:50:03 CEST 2002


Update of /cvsroot/scummvm/scummvm/scumm
In directory usw-pr-cvs1:/tmp/cvs-serv27970/scumm

Modified Files:
	string.cpp 
Log Message:
fixed text centering in GF_OLD256 games, e.g. during the Indy3 intro and in the F7 dialog (bug #599598)

Index: string.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/string.cpp,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- string.cpp	31 Aug 2002 13:29:09 -0000	1.3
+++ string.cpp	31 Aug 2002 13:49:06 -0000	1.4
@@ -70,7 +70,7 @@
 			}
 		}
 		if (_vm->_features & GF_OLD256) {
-			width += 8;
+			width += getSpacing(chr);
 		} else {
 			offs = READ_LE_UINT32(ptr + chr * 4 + 4);
 			if (offs) {
@@ -1018,11 +1018,12 @@
 	}
 }
 
+// do spacing for variable width old-style font
 int CharsetRenderer::getSpacing(char chr)
 {
 	int space;
 
-	if (_curId == 1) {						// do spacing for variable width old-style font 
+	if (_curId == 1) { 
 		switch (chr) {
 		case '.':
 			space = 1;





More information about the Scummvm-git-logs mailing list