aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFilippos Karapetis2011-10-11 02:53:00 +0300
committerFilippos Karapetis2011-10-11 02:53:00 +0300
commitdf63b827bf6ad8c738273c9b8e75d129dc928737 (patch)
tree8194dc75f226c76b6cff90ec0f05c457e68e7eaf
parenta9c6d2a4c4e80708d63dbbd7dc2c0419258d6d19 (diff)
downloadscummvm-rg350-df63b827bf6ad8c738273c9b8e75d129dc928737.tar.gz
scummvm-rg350-df63b827bf6ad8c738273c9b8e75d129dc928737.tar.bz2
scummvm-rg350-df63b827bf6ad8c738273c9b8e75d129dc928737.zip
SCI: Fixed text display in QFG4
-rw-r--r--engines/sci/graphics/text32.cpp6
1 files changed, 4 insertions, 2 deletions
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();