aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorWillem Jan Palenstijn2016-03-20 16:50:12 +0100
committerColin Snover2016-06-21 08:14:11 -0500
commitc4b41f5d7cfd6506c9d541868af71c5288b36c09 (patch)
treec6e640f241e07a80e772ed5f4d55690a62783746 /engines
parent97c11e7d5fd1f23efc742abd2cb702cb8ce74361 (diff)
downloadscummvm-rg350-c4b41f5d7cfd6506c9d541868af71c5288b36c09.tar.gz
scummvm-rg350-c4b41f5d7cfd6506c9d541868af71c5288b36c09.tar.bz2
scummvm-rg350-c4b41f5d7cfd6506c9d541868af71c5288b36c09.zip
SCI32: Fix drawText on consecutive control codes
Diffstat (limited to 'engines')
-rw-r--r--engines/sci/graphics/text32.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/engines/sci/graphics/text32.cpp b/engines/sci/graphics/text32.cpp
index 62664c1aa2..425c7fb6d6 100644
--- a/engines/sci/graphics/text32.cpp
+++ b/engines/sci/graphics/text32.cpp
@@ -311,6 +311,10 @@ void GfxText32::drawText(const uint index, uint length) {
++text;
--length;
}
+ if (length > 0) {
+ ++text;
+ --length;
+ }
} else {
drawChar(currentChar);
}