PINK: Fix text drawing, use absolute coordinates

This commit is contained in:
Eugene Sandulenko 2019-10-20 20:08:59 +05:00
parent 694ed6e7bc
commit 5b25531e96

View File

@ -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)