aboutsummaryrefslogtreecommitdiff
path: root/scumm/string.cpp
diff options
context:
space:
mode:
authorTravis Howell2005-03-18 23:31:58 +0000
committerTravis Howell2005-03-18 23:31:58 +0000
commit89ce70d724b05f52fdc3234d9a36735aeffcf8a6 (patch)
treedaf7d7bb1997269ffe84e8c32b1be32ef3e6c70e /scumm/string.cpp
parent3025db0d07c9bfa9f8cda8ff49847287230f166d (diff)
downloadscummvm-rg350-89ce70d724b05f52fdc3234d9a36735aeffcf8a6.tar.gz
scummvm-rg350-89ce70d724b05f52fdc3234d9a36735aeffcf8a6.tar.bz2
scummvm-rg350-89ce70d724b05f52fdc3234d9a36735aeffcf8a6.zip
Applies to drawString() too.
svn-id: r17181
Diffstat (limited to 'scumm/string.cpp')
-rw-r--r--scumm/string.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/scumm/string.cpp b/scumm/string.cpp
index 8e6770a646..3e1a3b05e3 100644
--- a/scumm/string.cpp
+++ b/scumm/string.cpp
@@ -434,7 +434,6 @@ void ScummEngine::drawString(int a, const byte *msg) {
fontHeight = _charset->getFontHeight();
-
// trim from the right
byte *tmp = buf;
space = NULL;
@@ -491,7 +490,11 @@ void ScummEngine::drawString(int a, const byte *msg) {
} else {
_charset->_left = _charset->_startLeft;
}
- _charset->_top += fontHeight;
+ if (_string[0].height) {
+ _charset->_nextTop += _string[0].height;
+ } else {
+ _charset->_top += fontHeight;
+ }
break;
case 12:
color = buf[i] + (buf[i + 1] << 8);