diff options
author | Eugene Sandulenko | 2017-08-02 21:13:14 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2017-08-04 21:54:19 +0200 |
commit | d9e7cbaf961554cfd1736921278b008efb94a40b (patch) | |
tree | 194a04316a4caa17e1ff39ce8abf65fbef323779 /graphics/macgui | |
parent | 8609572b879e526d94a3331cebce3322754f81be (diff) | |
download | scummvm-rg350-d9e7cbaf961554cfd1736921278b008efb94a40b.tar.gz scummvm-rg350-d9e7cbaf961554cfd1736921278b008efb94a40b.tar.bz2 scummvm-rg350-d9e7cbaf961554cfd1736921278b008efb94a40b.zip |
GRAPHICS: MACGUI: Implement MacText resize
Diffstat (limited to 'graphics/macgui')
-rw-r--r-- | graphics/macgui/mactext.cpp | 10 |
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) { |