[Scummvm-cvs-logs] scummvm master -> c4ca0a7de29ab32d35e72ae88ed399b377a3c2c7

m-kiewitz m_kiewitz at users.sourceforge.net
Sun Nov 2 02:15:51 CET 2014


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
c4ca0a7de2 SCI: fix bug in text16 / GetLongest()


Commit: c4ca0a7de29ab32d35e72ae88ed399b377a3c2c7
    https://github.com/scummvm/scummvm/commit/c4ca0a7de29ab32d35e72ae88ed399b377a3c2c7
Author: Martin Kiewitz (m_kiewitz at users.sourceforge.net)
Date: 2014-11-02T02:16:00+01:00

Commit Message:
SCI: fix bug in text16 / GetLongest()

Changed paths:
    engines/sci/graphics/text16.cpp



diff --git a/engines/sci/graphics/text16.cpp b/engines/sci/graphics/text16.cpp
index 66cff42..37d786a 100644
--- a/engines/sci/graphics/text16.cpp
+++ b/engines/sci/graphics/text16.cpp
@@ -196,8 +196,9 @@ int16 GfxText16::GetLongest(const char *&textPtr, int16 maxWidth, GuiResourceId
 		//  Sierra did it the same way.
 		case 0xD:
 			// Check, if 0xA is following, if so include it as well
-			if ((*(const byte *)textPtr + 1) == 0xA)
+			if ((*(const byte *)textPtr + 1) == 0xA) {
 				curCharCount++; textPtr++;
+			}
 			// it's meant to pass through here
 		case 0xA:
 		case 0x9781: // this one is used by SQ4/japanese as line break as well






More information about the Scummvm-git-logs mailing list