From dd76a20acd16df90457eb7eb11006902f8e3290b Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Tue, 14 Sep 2010 00:15:20 +0000 Subject: GUI: Fix caret undrawing. (Regression from r48551) Starting with r48551 the caret undrawing caused the text selection color in ListWidgets to be removed. It also added a slight offset to the character next to the undrawn caret. All this is fixed now. svn-id: r52716 --- gui/EditTextWidget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gui/EditTextWidget.cpp') diff --git a/gui/EditTextWidget.cpp b/gui/EditTextWidget.cpp index 7079453173..e5de1c6e7f 100644 --- a/gui/EditTextWidget.cpp +++ b/gui/EditTextWidget.cpp @@ -88,7 +88,7 @@ void EditTextWidget::drawWidget() { } Common::Rect EditTextWidget::getEditRect() const { - Common::Rect r(2 + _leftPadding, 1, _w - 2 - _leftPadding - _rightPadding, _h-1); + Common::Rect r(2 + _leftPadding, 2, _w - 2 - _leftPadding - _rightPadding, _h-1); return r; } -- cgit v1.2.3