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 /gui/ThemeNew.cpp | |
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
Diffstat (limited to 'gui/ThemeNew.cpp')
-rw-r--r-- | gui/ThemeNew.cpp | 5 |
1 files changed, 2 insertions, 3 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]); |