aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gui/ThemeClassic.cpp2
-rw-r--r--gui/ThemeNew.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/gui/ThemeClassic.cpp b/gui/ThemeClassic.cpp
index ecdb882f1f..3f28cb1b35 100644
--- a/gui/ThemeClassic.cpp
+++ b/gui/ThemeClassic.cpp
@@ -166,7 +166,7 @@ void ThemeClassic::drawText(const Common::Rect &r, const Common::String &str, St
if (!_initOk)
return;
- if (r.top < 0 || r.bottom - _font->getFontHeight() >= _screen.h)
+ if (r.top < 0 || r.bottom + _font->getFontHeight() >= _screen.h)
return;
if (!inverted) {
diff --git a/gui/ThemeNew.cpp b/gui/ThemeNew.cpp
index 5c87554690..c11fe7ae60 100644
--- a/gui/ThemeNew.cpp
+++ b/gui/ThemeNew.cpp
@@ -304,7 +304,7 @@ void ThemeNew::drawText(const Common::Rect &r, const Common::String &str, State
if (!_initOk)
return;
- if (r.top < 0 || r.bottom - getFontHeight(font) >= _screen.h)
+ if (r.top < 0 || r.bottom + getFontHeight(font) >= _screen.h)
return;
Common::Rect r2(r.left, r.top, r.right, r.top+getFontHeight(font));