aboutsummaryrefslogtreecommitdiff
path: root/engines/pink
diff options
context:
space:
mode:
authorEugene Sandulenko2019-10-20 20:08:59 +0500
committerEugene Sandulenko2019-10-20 20:09:28 +0500
commit5b25531e96827967c58f26f1aa5f5a3c98a44113 (patch)
tree7fb61c68fe8e9446c2c6c1986b59a7acde851c85 /engines/pink
parent694ed6e7bc2638e0bef340369feb5f2715085e6d (diff)
downloadscummvm-rg350-5b25531e96827967c58f26f1aa5f5a3c98a44113.tar.gz
scummvm-rg350-5b25531e96827967c58f26f1aa5f5a3c98a44113.tar.bz2
scummvm-rg350-5b25531e96827967c58f26f1aa5f5a3c98a44113.zip
PINK: Fix text drawing, use absolute coordinates
Diffstat (limited to 'engines/pink')
-rw-r--r--engines/pink/objects/actions/action_text.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/pink/objects/actions/action_text.cpp b/engines/pink/objects/actions/action_text.cpp
index 70aef5b95e..448756b1d9 100644
--- a/engines/pink/objects/actions/action_text.cpp
+++ b/engines/pink/objects/actions/action_text.cpp
@@ -153,7 +153,7 @@ void ActionText::draw(Graphics::ManagedSurface *surface) {
Graphics::MacFont *font = new Graphics::MacFont();
Director *director = _actor->getPage()->getGame()->getDirector();
Graphics::MacText text(_text, &director->getWndManager(), font, _textColorIndex, _backgroundColorIndex, _xRight - _xLeft, alignment);
- text.draw(surface, 0, 0, _xRight - _xLeft, _yBottom - _yTop, _xLeft, _yTop);
+ text.drawToPoint(surface, Common::Rect(0, 0, _xRight - _xLeft, _yBottom - _yTop), Common::Point(_xLeft, _yTop));
}
#define RED(rgb) ((rgb) & 0xFF)