GRAPHICS: Fix surface reallocation in MacText
This commit is contained in:
parent
165f5f1784
commit
7b7a0fa3ad
1 changed files with 1 additions and 1 deletions
|
@ -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));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue