aboutsummaryrefslogtreecommitdiff
path: root/graphics/macgui/mactextwindow.cpp
diff options
context:
space:
mode:
authorEugene Sandulenko2017-08-02 22:57:46 +0200
committerEugene Sandulenko2017-08-04 21:54:19 +0200
commit085eea68c36b9d1c3ea55fcdaabd371ec39125f2 (patch)
tree235ea4457f35aed4e3746efb11705367cb1a0085 /graphics/macgui/mactextwindow.cpp
parent91615eb940b766135d15f4d56519de35b5c3ce88 (diff)
downloadscummvm-rg350-085eea68c36b9d1c3ea55fcdaabd371ec39125f2.tar.gz
scummvm-rg350-085eea68c36b9d1c3ea55fcdaabd371ec39125f2.tar.bz2
scummvm-rg350-085eea68c36b9d1c3ea55fcdaabd371ec39125f2.zip
GRAPHICS: MACGUI: Use proper dimensions for maxTextWidth in MacTextWindow
Diffstat (limited to 'graphics/macgui/mactextwindow.cpp')
-rw-r--r--graphics/macgui/mactextwindow.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/graphics/macgui/mactextwindow.cpp b/graphics/macgui/mactextwindow.cpp
index b3824f66be..e12a9020d8 100644
--- a/graphics/macgui/mactextwindow.cpp
+++ b/graphics/macgui/mactextwindow.cpp
@@ -72,10 +72,10 @@ MacTextWindow::MacTextWindow(MacWindowManager *wm, const MacFont *font, int fgco
void MacTextWindow::resize(int w, int h) {
undrawInput();
- _maxWidth = w - kBorderWidth * 2;
- _mactext->setMaxWidth(_maxWidth);
-
MacWindow::resize(w, h);
+
+ _maxWidth = _innerDims.width();
+ _mactext->setMaxWidth(_maxWidth);
}
void MacTextWindow::appendText(Common::String str, const MacFont *macFont, bool skipAdd) {