[Scummvm-git-logs] scummvm master -> 69cb4dd7a94755d6f0a73c4b31c6d2b20f790853

ysj1173886760 42030331+ysj1173886760 at users.noreply.github.com
Wed Aug 18 13:07:00 UTC 2021


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
69cb4dd7a9 GRAPHICS: MACGUI: fix rendering text.


Commit: 69cb4dd7a94755d6f0a73c4b31c6d2b20f790853
    https://github.com/scummvm/scummvm/commit/69cb4dd7a94755d6f0a73c4b31c6d2b20f790853
Author: ysj1173886760 (1173886760 at qq.com)
Date: 2021-08-18T21:06:41+08:00

Commit Message:
GRAPHICS: MACGUI: fix rendering text.

Changed paths:
    graphics/macgui/mactext.cpp


diff --git a/graphics/macgui/mactext.cpp b/graphics/macgui/mactext.cpp
index 2add60bb42..361cffd47b 100644
--- a/graphics/macgui/mactext.cpp
+++ b/graphics/macgui/mactext.cpp
@@ -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;




More information about the Scummvm-git-logs mailing list