diff options
author | Willem Jan Palenstijn | 2016-03-20 16:50:12 +0100 |
---|---|---|
committer | Colin Snover | 2016-06-21 08:14:11 -0500 |
commit | c4b41f5d7cfd6506c9d541868af71c5288b36c09 (patch) | |
tree | c6e640f241e07a80e772ed5f4d55690a62783746 | |
parent | 97c11e7d5fd1f23efc742abd2cb702cb8ce74361 (diff) | |
download | scummvm-rg350-c4b41f5d7cfd6506c9d541868af71c5288b36c09.tar.gz scummvm-rg350-c4b41f5d7cfd6506c9d541868af71c5288b36c09.tar.bz2 scummvm-rg350-c4b41f5d7cfd6506c9d541868af71c5288b36c09.zip |
SCI32: Fix drawText on consecutive control codes
-rw-r--r-- | engines/sci/graphics/text32.cpp | 4 |
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); } |