diff options
author | Travis Howell | 2005-03-18 23:31:58 +0000 |
---|---|---|
committer | Travis Howell | 2005-03-18 23:31:58 +0000 |
commit | 89ce70d724b05f52fdc3234d9a36735aeffcf8a6 (patch) | |
tree | daf7d7bb1997269ffe84e8c32b1be32ef3e6c70e /scumm | |
parent | 3025db0d07c9bfa9f8cda8ff49847287230f166d (diff) | |
download | scummvm-rg350-89ce70d724b05f52fdc3234d9a36735aeffcf8a6.tar.gz scummvm-rg350-89ce70d724b05f52fdc3234d9a36735aeffcf8a6.tar.bz2 scummvm-rg350-89ce70d724b05f52fdc3234d9a36735aeffcf8a6.zip |
Applies to drawString() too.
svn-id: r17181
Diffstat (limited to 'scumm')
-rw-r--r-- | scumm/string.cpp | 7 |
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); |