diff options
author | Johannes Schickel | 2006-01-29 16:12:59 +0000 |
---|---|---|
committer | Johannes Schickel | 2006-01-29 16:12:59 +0000 |
commit | e5e7587443a17a79129287bf26b3229663cae69f (patch) | |
tree | 18aacbdfbd33bb358ae5a1e622bdde8f96f9a1aa | |
parent | 7eaa5b99b597e1f5074d8871959bc3aa2f29e992 (diff) | |
download | scummvm-rg350-e5e7587443a17a79129287bf26b3229663cae69f.tar.gz scummvm-rg350-e5e7587443a17a79129287bf26b3229663cae69f.tar.bz2 scummvm-rg350-e5e7587443a17a79129287bf26b3229663cae69f.zip |
Ok this should fix now all problems with drawing bugs of texts.
svn-id: r20298
-rw-r--r-- | gui/ThemeNew.cpp | 5 | ||||
-rw-r--r-- | gui/about.cpp | 2 |
2 files changed, 3 insertions, 4 deletions
diff --git a/gui/ThemeNew.cpp b/gui/ThemeNew.cpp index 56b0fc9ea9..cac81ad260 100644 --- a/gui/ThemeNew.cpp +++ b/gui/ThemeNew.cpp @@ -300,11 +300,10 @@ void ThemeNew::drawDialogBackground(const Common::Rect &r, uint16 hints, kState void ThemeNew::drawText(const Common::Rect &r, const Common::String &str, kState state, kTextAlign align, bool inverted, int deltax, bool useEllipsis) { if (!_initOk) return; - // FIXME:since the 'height' of the font seems not to be correct we just add 4 to it right now - // that should fix redraw bugs with the about dialog - Common::Rect r2(r.left, r.top, r.right, r.top+_font->getFontHeight()+4); + Common::Rect r2(r.left, r.top, r.right, r.top+_font->getFontHeight()); restoreBackground(r2); + r2.bottom += 4; if (inverted) { _screen.fillRect(r, _colors[kTextInvertedBackground]); diff --git a/gui/about.cpp b/gui/about.cpp index 0043bd8518..fe1ea6afa8 100644 --- a/gui/about.cpp +++ b/gui/about.cpp @@ -249,7 +249,7 @@ void AboutDialog::drawDialog() { while (*str && *str == ' ') str++; - g_gui.theme()->drawText(Common::Rect(_x + xOff, y, _x + _w - xOff, y + g_gui.theme()->getFontHeight() + 4), str, state, align, false, 0, false); + g_gui.theme()->drawText(Common::Rect(_x + xOff, y, _x + _w - xOff, y + g_gui.theme()->getFontHeight()), str, state, align, false, 0, false); y += _lineHeight; } g_gui.theme()->resetDrawArea(); |