From df36b2d7e02ee44591b7bd5e0be1fc7b329b166e Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Wed, 2 Aug 2017 22:36:10 +0200 Subject: GRAPHICS: MACGUI: Clear rendered text when lines are removed in MacText --- graphics/macgui/mactext.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'graphics/macgui/mactext.cpp') diff --git a/graphics/macgui/mactext.cpp b/graphics/macgui/mactext.cpp index 7bcc09919a..4bb9feff36 100644 --- a/graphics/macgui/mactext.cpp +++ b/graphics/macgui/mactext.cpp @@ -439,6 +439,8 @@ void MacText::removeLastLine() { int h = getLineHeight(_textLines.size() - 1) + _interLinear; + _surface->fillRect(Common::Rect(0, _textMaxHeight - h, _surface->w, _textMaxHeight), _bgcolor); + _textLines.pop_back(); _textMaxHeight -= h; } -- cgit v1.2.3