diff options
author | Eugene Sandulenko | 2017-08-02 21:08:46 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2017-08-04 21:54:19 +0200 |
commit | 8609572b879e526d94a3331cebce3322754f81be (patch) | |
tree | 9f9848ea5d248b42e9daa13c3f452a0693b72df9 /graphics/macgui/mactextwindow.cpp | |
parent | b6970ade92a3b92188404b308fa6e839f3063286 (diff) | |
download | scummvm-rg350-8609572b879e526d94a3331cebce3322754f81be.tar.gz scummvm-rg350-8609572b879e526d94a3331cebce3322754f81be.tar.bz2 scummvm-rg350-8609572b879e526d94a3331cebce3322754f81be.zip |
GRAPHICS: MACGUI: Correctly set MacTextWindow internal MacText size
Diffstat (limited to 'graphics/macgui/mactextwindow.cpp')
-rw-r--r-- | graphics/macgui/mactextwindow.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/graphics/macgui/mactextwindow.cpp b/graphics/macgui/mactextwindow.cpp index 4d4d5a2a31..54c8f77726 100644 --- a/graphics/macgui/mactextwindow.cpp +++ b/graphics/macgui/mactextwindow.cpp @@ -69,6 +69,13 @@ MacTextWindow::MacTextWindow(MacWindowManager *wm, const MacFont *font, int fgco g_system->getTimerManager()->installTimerProc(&cursorTimerHandler, 200000, this, "textWindowCursor"); } +void MacTextWindow::resize(int w, int h) { + _maxWidth = w - kBorderWidth * 2; + _mactext->setMaxWidth(_maxWidth); + + MacWindow::resize(w, h); +} + void MacTextWindow::appendText(Common::String str, const MacFont *macFont) { _mactext->appendText(str, macFont->getId(), macFont->getSize(), macFont->getSlant()); |