aboutsummaryrefslogtreecommitdiff
path: root/scumm
diff options
context:
space:
mode:
authorMax Horn2003-04-26 16:51:03 +0000
committerMax Horn2003-04-26 16:51:03 +0000
commit35955dd35acbb1101ae01120bb980a74d27eb016 (patch)
tree199e13f475cade6e6bf60cd76ddb99bb57b051f4 /scumm
parentadbd60cc7bc8d219629c543fbc6a18941abf64a1 (diff)
downloadscummvm-rg350-35955dd35acbb1101ae01120bb980a74d27eb016.tar.gz
scummvm-rg350-35955dd35acbb1101ae01120bb980a74d27eb016.tar.bz2
scummvm-rg350-35955dd35acbb1101ae01120bb980a74d27eb016.zip
Erik's fix for text output in Loom (and Indy3?)
svn-id: r7140
Diffstat (limited to 'scumm')
-rw-r--r--scumm/string.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/scumm/string.cpp b/scumm/string.cpp
index b34eb5c66a..5602656931 100644
--- a/scumm/string.cpp
+++ b/scumm/string.cpp
@@ -229,8 +229,11 @@ void Scumm::CHARSET_1() {
if (c == 13) {
newLine:;
if (_features & GF_AFTER_V3) {
- _charset->_nextTop = 8;
- _charset->_nextLeft = 0;
+ _charset->_nextTop += 8;
+ _charset->_nextLeft = _string[0].xpos;
+ if (_charset->_center) {
+ _charset->_nextLeft -= _charset->getStringWidth(0, buffer) >> 1;
+ }
continue;
} else {
_charset->_nextLeft = _string[0].xpos;