diff options
author | Eugene Sandulenko | 2017-02-02 23:53:30 +0100 |
---|---|---|
committer | Eugene Sandulenko | 2017-02-02 23:53:30 +0100 |
commit | 7b7a0fa3ad805a4a1a6be04eacbad7957d78680f (patch) | |
tree | a086b063dc3cd20955028e0a9732505a57057489 /graphics/macgui | |
parent | 165f5f1784797e2c1d522c7efe043ddc617c9f88 (diff) | |
download | scummvm-rg350-7b7a0fa3ad805a4a1a6be04eacbad7957d78680f.tar.gz scummvm-rg350-7b7a0fa3ad805a4a1a6be04eacbad7957d78680f.tar.bz2 scummvm-rg350-7b7a0fa3ad805a4a1a6be04eacbad7957d78680f.zip |
GRAPHICS: Fix surface reallocation in MacText
Diffstat (limited to 'graphics/macgui')
-rw-r--r-- | graphics/macgui/mactext.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/graphics/macgui/mactext.cpp b/graphics/macgui/mactext.cpp index 22bd5ecbd2..050de56894 100644 --- a/graphics/macgui/mactext.cpp +++ b/graphics/macgui/mactext.cpp @@ -213,7 +213,7 @@ void MacText::reallocSurface() { return; } - if (_surface->h < _textMaxWidth) { + if (_surface->w < _textMaxWidth || _surface->h < _textMaxHeight) { // realloc surface and copy old content ManagedSurface *n = new ManagedSurface(_textMaxWidth, _textMaxHeight); n->blitFrom(*_surface, Common::Point(0, 0)); |