From 3be846cfd7fdacf985334e05e60cd5a12aae526a Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Sun, 24 Nov 2013 00:11:01 +0100 Subject: GUI: Draw caret over the whole height of the edit rect. This improves the look of the editable widgets. --- gui/widgets/editable.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gui') 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()) { -- cgit v1.2.3