diff options
author | Benjamin Haisch | 2008-09-15 11:16:22 +0000 |
---|---|---|
committer | Willem Jan Palenstijn | 2011-11-20 22:43:06 +0100 |
commit | 398d0daac0c41cdd3db7c7ba8e865a791df170ff (patch) | |
tree | ebefa9089fcb3b5e21a06e1104d52c7e75b0f72a /engines | |
parent | aaded0f5465336a1f5f9ea264c1b0efd878187ef (diff) | |
download | scummvm-rg350-398d0daac0c41cdd3db7c7ba8e865a791df170ff.tar.gz scummvm-rg350-398d0daac0c41cdd3db7c7ba8e865a791df170ff.tar.bz2 scummvm-rg350-398d0daac0c41cdd3db7c7ba8e865a791df170ff.zip |
TOLTECS: Adjust y position of talk text lines.
Diffstat (limited to 'engines')
-rw-r--r-- | engines/toltecs/screen.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/engines/toltecs/screen.cpp b/engines/toltecs/screen.cpp index 612aaff1e6..8427757371 100644 --- a/engines/toltecs/screen.cpp +++ b/engines/toltecs/screen.cpp @@ -767,6 +767,14 @@ void Screen::updateTalkText(int16 slotIndex, int16 slotOffset) { debug(0, "## item->lineCount = %d", item->lineCount); + if (item->lineCount > 0) { + int16 ysub = (font.getHeight() - 1) * item->lineCount; + if (item->lines[0].y - 4 < ysub) + ysub = item->lines[0].y - 4; + for (int16 l = 0; l < item->lineCount; l++) + item->lines[l].y -= ysub; + } + int16 textDurationMultiplier = item->duration + 8; // TODO: Check sound/text flags if (*textData == 0xFE) { |