aboutsummaryrefslogtreecommitdiff
path: root/graphics/macgui/mactext.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/macgui/mactext.cpp')
-rw-r--r--graphics/macgui/mactext.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/graphics/macgui/mactext.cpp b/graphics/macgui/mactext.cpp
index fa0510b544..2ca60a1745 100644
--- a/graphics/macgui/mactext.cpp
+++ b/graphics/macgui/mactext.cpp
@@ -410,4 +410,14 @@ void MacText::replaceLastLine(Common::String str) {
render(oldLen, _textLines.size());
}
+void MacText::removeLastLine() {
+ if (!_textLines.size())
+ return;
+
+ int h = getLineHeight(_textLines.size() - 1) + _interLinear;
+
+ _textLines.pop_back();
+ _textMaxHeight -= h;
+}
+
} // End of namespace Graphics