[Scummvm-cvs-logs] SF.net SVN: scummvm:[42115] scummvm/trunk/engines/cruise/font.cpp

dreammaster at users.sourceforge.net dreammaster at users.sourceforge.net
Sun Jul 5 09:21:17 CEST 2009


Revision: 42115
          http://scummvm.svn.sourceforge.net/scummvm/?rev=42115&view=rev
Author:   dreammaster
Date:     2009-07-05 07:21:17 +0000 (Sun, 05 Jul 2009)

Log Message:
-----------
Bugfix for word-wrapping of text, which sometimes failed for strings with special characters

Modified Paths:
--------------
    scummvm/trunk/engines/cruise/font.cpp

Modified: scummvm/trunk/engines/cruise/font.cpp
===================================================================
--- scummvm/trunk/engines/cruise/font.cpp	2009-07-05 03:24:46 UTC (rev 42114)
+++ scummvm/trunk/engines/cruise/font.cpp	2009-07-05 07:21:17 UTC (rev 42115)
@@ -242,7 +242,7 @@
 			if (character == '|' || !character) {
 				finish = 1;
 			} else {
-				if (charData) {
+				if (charData >= 0) {
 					if (pixelCount + wordSpacingWidth +
 							(int16)fontData[charData].charWidth >= inRightBorder_X) {
 						finish = 1;


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