aboutsummaryrefslogtreecommitdiff
path: root/gui
diff options
context:
space:
mode:
authorJohannes Schickel2006-06-21 21:44:13 +0000
committerJohannes Schickel2006-06-21 21:44:13 +0000
commit9cb6196508d084a9fa6e6a0057b035dbcdc31cb2 (patch)
tree8a307de31bd95d990739464937b5e3ba1374b154 /gui
parent034676f33a191a784104875ab689f30332757f5c (diff)
downloadscummvm-rg350-9cb6196508d084a9fa6e6a0057b035dbcdc31cb2.tar.gz
scummvm-rg350-9cb6196508d084a9fa6e6a0057b035dbcdc31cb2.tar.bz2
scummvm-rg350-9cb6196508d084a9fa6e6a0057b035dbcdc31cb2.zip
Oops fixes problem introduced with last commit.
svn-id: r23250
Diffstat (limited to 'gui')
-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));