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

m_kiewitz at users.sourceforge.net m_kiewitz at users.sourceforge.net
Mon Apr 19 13:59:46 CEST 2010


Revision: 48715
          http://scummvm.svn.sourceforge.net/scummvm/?rev=48715&view=rev
Author:   m_kiewitz
Date:     2010-04-19 11:59:46 +0000 (Mon, 19 Apr 2010)

Log Message:
-----------
SCI: added more comments for 0xD 0xA cases inside GetLongest()

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-04-19 09:58:13 UTC (rev 48714)
+++ scummvm/trunk/engines/sci/graphics/text16.cpp	2010-04-19 11:59:46 UTC (rev 48715)
@@ -178,12 +178,15 @@
 			}
 			break;
 
+		// We need to add 0xD, 0xA and 0xD 0xA to curCharCount and then exit
 		case 0xD:
 			// Check, if 0xA is following, if so include it as well
 			if ((*(const unsigned char *)text) == 0xA)
 				curCharCount++;
+			// it's meant to pass through here
 		case 0xA:
 			curCharCount++;
+			// and it's also meant to pass through here
 		case 0:
 			SetFont(oldFontId);
 			_ports->penColor(oldPenColor);


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