aboutsummaryrefslogtreecommitdiff
path: root/graphics/macgui/mactext.cpp
diff options
context:
space:
mode:
authorEugene Sandulenko2017-08-02 21:13:14 +0200
committerEugene Sandulenko2017-08-04 21:54:19 +0200
commitd9e7cbaf961554cfd1736921278b008efb94a40b (patch)
tree194a04316a4caa17e1ff39ce8abf65fbef323779 /graphics/macgui/mactext.cpp
parent8609572b879e526d94a3331cebce3322754f81be (diff)
downloadscummvm-rg350-d9e7cbaf961554cfd1736921278b008efb94a40b.tar.gz
scummvm-rg350-d9e7cbaf961554cfd1736921278b008efb94a40b.tar.bz2
scummvm-rg350-d9e7cbaf961554cfd1736921278b008efb94a40b.zip
GRAPHICS: MACGUI: Implement MacText resize
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 20437021cc..925f21beac 100644
--- a/graphics/macgui/mactext.cpp
+++ b/graphics/macgui/mactext.cpp
@@ -84,6 +84,16 @@ MacText::MacText(Common::String s, MacWindowManager *wm, const MacFont *macFont,
void MacText::setMaxWidth(int maxWidth) {
_maxWidth = maxWidth;
+
+ _textLines.clear();
+
+ if (!_str.empty()) {
+ splitString(_str);
+
+ recalcDims();
+
+ _fullRefresh = true;
+ }
}
void MacText::splitString(Common::String &str) {