aboutsummaryrefslogtreecommitdiff
path: root/graphics
diff options
context:
space:
mode:
authorEugene Sandulenko2019-12-26 17:47:58 +0100
committerEugene Sandulenko2019-12-26 17:47:58 +0100
commit97abe323c460c678aa1fe6e20a5749cfd66ed2ee (patch)
tree253e3b8c0f7df3e1f22e6836d394ee24ce82c445 /graphics
parent40cb3b8f925361d67598b8f50a2e9d16365cd640 (diff)
downloadscummvm-rg350-97abe323c460c678aa1fe6e20a5749cfd66ed2ee.tar.gz
scummvm-rg350-97abe323c460c678aa1fe6e20a5749cfd66ed2ee.tar.bz2
scummvm-rg350-97abe323c460c678aa1fe6e20a5749cfd66ed2ee.zip
GRAPHICS: MACGUI: Sanity check for empty lines
Diffstat (limited to 'graphics')
-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 5963d1ed67..14eb411a23 100644
--- a/graphics/macgui/mactext.cpp
+++ b/graphics/macgui/mactext.cpp
@@ -392,7 +392,7 @@ int MacText::getLineWidth(int line, bool enforce) {
}
if (!hastext)
- height -= 3;
+ height = height > 3 ? height - 3 : 0;
_textLines[line].width = width;
_textLines[line].height = height;