From df63b827bf6ad8c738273c9b8e75d129dc928737 Mon Sep 17 00:00:00 2001 From: Filippos Karapetis Date: Tue, 11 Oct 2011 02:53:00 +0300 Subject: SCI: Fixed text display in QFG4 --- engines/sci/graphics/text32.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'engines/sci/graphics') diff --git a/engines/sci/graphics/text32.cpp b/engines/sci/graphics/text32.cpp index 1939baeb06..85ede02239 100644 --- a/engines/sci/graphics/text32.cpp +++ b/engines/sci/graphics/text32.cpp @@ -123,8 +123,10 @@ void GfxText32::drawTextBitmap(reg_t textObject) { int curByte = 0; Common::Rect nsRect = getNSRect(textObject); Common::Rect planeRect = getPlaneRect(textObject); - uint16 textX = planeRect.left + nsRect.left; - uint16 textY = planeRect.top + nsRect.top; + uint16 x = readSelectorValue(_segMan, textObject, SELECTOR(x)); + uint16 y = readSelectorValue(_segMan, textObject, SELECTOR(y)); + uint16 textX = planeRect.left + x; + uint16 textY = planeRect.top + y; uint16 width = nsRect.width(); uint16 height = nsRect.height(); -- cgit v1.2.3