diff options
author | Johannes Schickel | 2006-05-27 12:37:00 +0000 |
---|---|---|
committer | Johannes Schickel | 2006-05-27 12:37:00 +0000 |
commit | ae191feb213d9965d67e88d29cce19a23bef9412 (patch) | |
tree | 5c253dbe1067baa00da66e45bedbcbd2441cc1b1 /gui/ThemeNew.cpp | |
parent | 60e288fe87461308e45d90a3297734eaa92284c7 (diff) | |
download | scummvm-rg350-ae191feb213d9965d67e88d29cce19a23bef9412.tar.gz scummvm-rg350-ae191feb213d9965d67e88d29cce19a23bef9412.tar.bz2 scummvm-rg350-ae191feb213d9965d67e88d29cce19a23bef9412.zip |
Fixes caret drawing in EditTextWidgets.
svn-id: r22678
Diffstat (limited to 'gui/ThemeNew.cpp')
-rw-r--r-- | gui/ThemeNew.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gui/ThemeNew.cpp b/gui/ThemeNew.cpp index bec6cddf57..d99116a4cc 100644 --- a/gui/ThemeNew.cpp +++ b/gui/ThemeNew.cpp @@ -876,7 +876,7 @@ void ThemeNew::drawCaret(const Common::Rect &r, bool erase, kState state) { restoreBackground(r); if (!erase) { - _screen.vLine(r.left, r.top, r.bottom, _colors[kCaretColor]); + _screen.vLine(r.left, r.top, r.bottom-1, _colors[kCaretColor]); } else if (r.top >= 0) { // FIXME: hack to restore the caret background correctly const OverlayColor search = _colors[kTextInvertedBackground]; @@ -893,7 +893,7 @@ void ThemeNew::drawCaret(const Common::Rect &r, bool erase, kState state) { src += _screen.w; } if (drawInvBackground) { - _screen.vLine(r.left, r.top, r.bottom, search); + _screen.vLine(r.left, r.top, r.bottom-1, search); } } addDirtyRect(r); |