From 398d0daac0c41cdd3db7c7ba8e865a791df170ff Mon Sep 17 00:00:00 2001 From: Benjamin Haisch Date: Mon, 15 Sep 2008 11:16:22 +0000 Subject: TOLTECS: Adjust y position of talk text lines. --- engines/toltecs/screen.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'engines') 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) { -- cgit v1.2.3