aboutsummaryrefslogtreecommitdiff
path: root/graphics/macgui
diff options
context:
space:
mode:
authorEugene Sandulenko2017-08-02 22:36:10 +0200
committerEugene Sandulenko2017-08-04 21:54:19 +0200
commitdf36b2d7e02ee44591b7bd5e0be1fc7b329b166e (patch)
tree1d731c6fd964d43bf6a32ac76316b668adb6839b /graphics/macgui
parent7333a68636b623891904e61718bc6327a9d8192f (diff)
downloadscummvm-rg350-df36b2d7e02ee44591b7bd5e0be1fc7b329b166e.tar.gz
scummvm-rg350-df36b2d7e02ee44591b7bd5e0be1fc7b329b166e.tar.bz2
scummvm-rg350-df36b2d7e02ee44591b7bd5e0be1fc7b329b166e.zip
GRAPHICS: MACGUI: Clear rendered text when lines are removed in MacText
Diffstat (limited to 'graphics/macgui')
-rw-r--r--graphics/macgui/mactext.cpp2
1 files changed, 2 insertions, 0 deletions
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;
}