mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-10 11:51:52 +00:00
PINK: Fix text drawing, use absolute coordinates
This commit is contained in:
parent
694ed6e7bc
commit
5b25531e96
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user