aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Sandulenko2017-02-02 23:53:30 +0100
committerEugene Sandulenko2017-02-02 23:53:30 +0100
commit7b7a0fa3ad805a4a1a6be04eacbad7957d78680f (patch)
treea086b063dc3cd20955028e0a9732505a57057489
parent165f5f1784797e2c1d522c7efe043ddc617c9f88 (diff)
downloadscummvm-rg350-7b7a0fa3ad805a4a1a6be04eacbad7957d78680f.tar.gz
scummvm-rg350-7b7a0fa3ad805a4a1a6be04eacbad7957d78680f.tar.bz2
scummvm-rg350-7b7a0fa3ad805a4a1a6be04eacbad7957d78680f.zip
GRAPHICS: Fix surface reallocation in MacText
-rw-r--r--graphics/macgui/mactext.cpp2
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));