GRAPHICS: MACGUI: fix rendering text.

This commit is contained in:
ysj1173886760 2021-08-18 21:06:15 +08:00
parent a88a754de6
commit 69cb4dd7a9

View File

@ -1278,7 +1278,7 @@ void MacText::draw(ManagedSurface *g, int x, int y, int w, int h, int xoff, int
if (_textShadow)
g->blitFrom(*_shadowSurface, Common::Rect(MIN<int>(_surface->w, x), MIN<int>(_surface->h, y), MIN<int>(_surface->w, x + w), MIN<int>(_surface->h, y + h)), Common::Point(xoff + _textShadow, yoff + _textShadow));
g->transBlitFrom(*_surface, Common::Rect(MIN<int>(_surface->w, x), MIN<int>(_surface->h, y), MIN<int>(_surface->w, x + w), MIN<int>(_surface->h, y + h)), Common::Point(xoff, yoff), 0xff);
g->transBlitFrom(*_surface, Common::Rect(MIN<int>(_surface->w, x), MIN<int>(_surface->h, y), MIN<int>(_surface->w, x + w), MIN<int>(_surface->h, y + h)), Common::Point(xoff, yoff), _bgcolor);
_contentIsDirty = false;
_cursorDirty = false;