[Scummvm-git-logs] scummvm master -> 7b7a0fa3ad805a4a1a6be04eacbad7957d78680f
sev-
sev at scummvm.org
Thu Feb 2 23:54:02 CET 2017
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
7b7a0fa3ad GRAPHICS: Fix surface reallocation in MacText
Commit: 7b7a0fa3ad805a4a1a6be04eacbad7957d78680f
https://github.com/scummvm/scummvm/commit/7b7a0fa3ad805a4a1a6be04eacbad7957d78680f
Author: Eugene Sandulenko (sev at scummvm.org)
Date: 2017-02-02T23:53:30+01:00
Commit Message:
GRAPHICS: Fix surface reallocation in MacText
Changed paths:
graphics/macgui/mactext.cpp
diff --git a/graphics/macgui/mactext.cpp b/graphics/macgui/mactext.cpp
index 22bd5ec..050de56 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));
More information about the Scummvm-git-logs
mailing list