diff options
author | Johannes Schickel | 2013-11-24 00:11:01 +0100 |
---|---|---|
committer | Johannes Schickel | 2013-11-24 00:15:48 +0100 |
commit | 3be846cfd7fdacf985334e05e60cd5a12aae526a (patch) | |
tree | ba79164eb73e0e6132309733110ff755927425d3 /gui | |
parent | bb4a730a88f69917b02abcff943f7cdf2a9de8c7 (diff) | |
download | scummvm-rg350-3be846cfd7fdacf985334e05e60cd5a12aae526a.tar.gz scummvm-rg350-3be846cfd7fdacf985334e05e60cd5a12aae526a.tar.bz2 scummvm-rg350-3be846cfd7fdacf985334e05e60cd5a12aae526a.zip |
GUI: Draw caret over the whole height of the edit rect.
This improves the look of the editable widgets.
Diffstat (limited to 'gui')
-rw-r--r-- | gui/widgets/editable.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gui/widgets/editable.cpp b/gui/widgets/editable.cpp index 112995424f..fca9702690 100644 --- a/gui/widgets/editable.cpp +++ b/gui/widgets/editable.cpp @@ -263,13 +263,13 @@ void EditableWidget::drawCaret(bool erase) { x += getCaretOffset(); - if (y < 0 || y + editRect.height() - 2 > _h) + if (y < 0 || y + editRect.height() > _h) return; x += getAbsX(); y += getAbsY(); - g_gui.theme()->drawCaret(Common::Rect(x, y, x + 1, y + editRect.height() - 2), erase); + g_gui.theme()->drawCaret(Common::Rect(x, y, x + 1, y + editRect.height()), erase); if (erase) { if ((uint)_caretPos < _editString.size()) { |