diff options
author | Johannes Schickel | 2006-06-21 21:52:16 +0000 |
---|---|---|
committer | Johannes Schickel | 2006-06-21 21:52:16 +0000 |
commit | 3116a69adfffbee87d9a46d1f8fa4f56253b2ae9 (patch) | |
tree | b04ed33935f0cdd871c4f1e7d32818f52beaa737 | |
parent | 9cb6196508d084a9fa6e6a0057b035dbcdc31cb2 (diff) | |
download | scummvm-rg350-3116a69adfffbee87d9a46d1f8fa4f56253b2ae9.tar.gz scummvm-rg350-3116a69adfffbee87d9a46d1f8fa4f56253b2ae9.tar.bz2 scummvm-rg350-3116a69adfffbee87d9a46d1f8fa4f56253b2ae9.zip |
Ok after a few checks this is how it should be (fixing problems with my last commits).
svn-id: r23251
-rw-r--r-- | gui/ThemeClassic.cpp | 2 | ||||
-rw-r--r-- | gui/ThemeNew.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/gui/ThemeClassic.cpp b/gui/ThemeClassic.cpp index 3f28cb1b35..76e840d4df 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 >= _screen.h) return; if (!inverted) { diff --git a/gui/ThemeNew.cpp b/gui/ThemeNew.cpp index c11fe7ae60..258e6ccf6b 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 >= _screen.h) return; Common::Rect r2(r.left, r.top, r.right, r.top+getFontHeight(font)); |