[Scummvm-cvs-logs] SF.net SVN: scummvm:[55034] scummvm/trunk/engines/sci/graphics/text16.cpp

thebluegr at users.sourceforge.net thebluegr at users.sourceforge.net
Fri Dec 24 16:53:06 CET 2010


Revision: 55034
          http://scummvm.svn.sourceforge.net/scummvm/?rev=55034&view=rev
Author:   thebluegr
Date:     2010-12-24 15:53:06 +0000 (Fri, 24 Dec 2010)

Log Message:
-----------
SCI: Fixed bug #3059860 - "LB2CD: Glitch in Act 6 coroner answer buttons"

Modified Paths:
--------------
    scummvm/trunk/engines/sci/graphics/text16.cpp

Modified: scummvm/trunk/engines/sci/graphics/text16.cpp
===================================================================
--- scummvm/trunk/engines/sci/graphics/text16.cpp	2010-12-24 14:56:04 UTC (rev 55033)
+++ scummvm/trunk/engines/sci/graphics/text16.cpp	2010-12-24 15:53:06 UTC (rev 55034)
@@ -335,8 +335,8 @@
 			maxTextWidth = MAX(textWidth, maxTextWidth);
 			totalHeight += textHeight;
 			curPos += charCount;
-			if (*curPos == ' ')
-				curPos++; // skip over breaking space
+			while (*curPos == ' ')
+				curPos++; // skip over breaking spaces
 		}
 		rect.bottom = totalHeight;
 		rect.right = maxWidth ? maxWidth : MIN(rect.right, maxTextWidth);
@@ -456,8 +456,8 @@
 
 		hline += textHeight;
 		text += charCount;
-		if (*text == ' ')
-			text++; // skip over breaking space
+		while (*text == ' ')
+			text++; // skip over breaking spaces
 	}
 	SetFont(previousFontId);
 	_ports->penColor(previousPenColor);


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