diff options
author | Eugene Sandulenko | 2017-08-26 21:33:35 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2017-08-26 21:34:16 +0200 |
commit | f8284623c4d4d2a20ee12d35b9ebc6320fa30115 (patch) | |
tree | 45488485bc23fc890fbcaf60371f430dd018da24 /graphics | |
parent | 960ad3623f8ff735f77791026f3d4a38b8b1dd3e (diff) | |
download | scummvm-rg350-f8284623c4d4d2a20ee12d35b9ebc6320fa30115.tar.gz scummvm-rg350-f8284623c4d4d2a20ee12d35b9ebc6320fa30115.tar.bz2 scummvm-rg350-f8284623c4d4d2a20ee12d35b9ebc6320fa30115.zip |
GRAPHICS: MACGUI: Clear whole surface when resizing
This removes black artifacts when previous text was narrower
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/macgui/mactext.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/graphics/macgui/mactext.cpp b/graphics/macgui/mactext.cpp index e2b945d28f..244988b3d6 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; |