aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Kiewitz2010-04-18 12:09:22 +0000
committerMartin Kiewitz2010-04-18 12:09:22 +0000
commit2590fd8c2a9dd7a28b863bd77412e9e7df9120dd (patch)
tree0a787f9f6c682f0cefbc66f10ed23149986f5aa7
parentf68dfd61debb5197033bcee38057359db1848e17 (diff)
downloadscummvm-rg350-2590fd8c2a9dd7a28b863bd77412e9e7df9120dd.tar.gz
scummvm-rg350-2590fd8c2a9dd7a28b863bd77412e9e7df9120dd.tar.bz2
scummvm-rg350-2590fd8c2a9dd7a28b863bd77412e9e7df9120dd.zip
SCI: sierra sci reacts on 0xD and 0xA to end a line. We only reacted on 0xA and ignored 0xD before (fixes subtitles in multilingual games, because the official subtitle separator is 0xD'----'0xD)
svn-id: r48699
-rw-r--r--engines/sci/graphics/text16.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/sci/graphics/text16.cpp b/engines/sci/graphics/text16.cpp
index cce34ae6b2..e320f0e7f7 100644
--- a/engines/sci/graphics/text16.cpp
+++ b/engines/sci/graphics/text16.cpp
@@ -179,9 +179,9 @@ int16 GfxText16::GetLongest(const char *text, int16 maxWidth, GuiResourceId orgF
break;
case 0xD:
- curCharCount++;
- continue;
-
+ // Check, if 0xA is following, if so include it as well
+ if ((*(unsigned char *)text) == 0xA)
+ curCharCount++;
case 0xA:
curCharCount++;
case 0: