[Scummvm-git-logs] scummvm master -> f8284623c4d4d2a20ee12d35b9ebc6320fa30115
sev-
sev at scummvm.org
Sat Aug 26 21:34:23 CEST 2017
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:
f8284623c4 GRAPHICS: MACGUI: Clear whole surface when resizing
Commit: f8284623c4d4d2a20ee12d35b9ebc6320fa30115
https://github.com/scummvm/scummvm/commit/f8284623c4d4d2a20ee12d35b9ebc6320fa30115
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2017-08-26T21:34:16+02:00
Commit Message:
GRAPHICS: MACGUI: Clear whole surface when resizing
This removes black artifacts when previous text was narrower
Changed paths:
graphics/macgui/mactext.cpp
diff --git a/graphics/macgui/mactext.cpp b/graphics/macgui/mactext.cpp
index e2b945d..244988b 100644
--- a/graphics/macgui/mactext.cpp
+++ b/graphics/macgui/mactext.cpp
@@ -244,6 +244,7 @@ void MacText::reallocSurface() {
if (_surface->w < _textMaxWidth || _surface->h < _textMaxHeight) {
// realloc surface and copy old content
ManagedSurface *n = new ManagedSurface(_textMaxWidth, _textMaxHeight);
+ n->clear(_bgcolor);
n->blitFrom(*_surface, Common::Point(0, 0));
delete _surface;
More information about the Scummvm-git-logs
mailing list