diff options
author | Johannes Schickel | 2010-09-14 00:15:20 +0000 |
---|---|---|
committer | Johannes Schickel | 2010-09-14 00:15:20 +0000 |
commit | dd76a20acd16df90457eb7eb11006902f8e3290b (patch) | |
tree | b4fb36bfc27bfc4d5edd6ed2d674c8af51cfc218 /gui/EditTextWidget.cpp | |
parent | 70245181f1fce247ba2f9ffbbd93c4032358d29f (diff) | |
download | scummvm-rg350-dd76a20acd16df90457eb7eb11006902f8e3290b.tar.gz scummvm-rg350-dd76a20acd16df90457eb7eb11006902f8e3290b.tar.bz2 scummvm-rg350-dd76a20acd16df90457eb7eb11006902f8e3290b.zip |
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
Diffstat (limited to 'gui/EditTextWidget.cpp')
-rw-r--r-- | gui/EditTextWidget.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |