aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
Diffstat (limited to 'engines')
-rw-r--r--engines/sci/graphics/text16.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/engines/sci/graphics/text16.cpp b/engines/sci/graphics/text16.cpp
index 3769cd3af9..c5c2054add 100644
--- a/engines/sci/graphics/text16.cpp
+++ b/engines/sci/graphics/text16.cpp
@@ -201,14 +201,17 @@ int16 GfxText16::GetLongest(const char *&textPtr, int16 maxWidth, GuiResourceId
}
// it's meant to pass through here
case 0xA:
- case 0x9781: // this one is used by SQ4/japanese as line break as well
- curCharCount++; textPtr++;
- // and it's also meant to pass through here
case 0:
SetFont(previousFontId);
_ports->penColor(previousPenColor);
return curCharCount;
+ case 0x9781: // this one is used by SQ4/japanese as line break as well
+ curCharCount += 2; textPtr += 2;
+ SetFont(previousFontId);
+ _ports->penColor(previousPenColor);
+ return curCharCount;
+
case ' ':
lastSpaceCharCount = curCharCount; // return count up to (but not including) breaking space
lastSpacePtr = textPtr + 1; // remember position right after the current space