aboutsummaryrefslogtreecommitdiff
path: root/graphics
diff options
context:
space:
mode:
Diffstat (limited to 'graphics')
-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) {