From 2cb8832991eccd9c11c170375309b28e1f52ef33 Mon Sep 17 00:00:00 2001 From: Torbjörn Andersson Date: Fri, 24 Feb 2006 20:25:34 +0000 Subject: Fixed redraw glitch. Our editable widgets were asking the theme to draw a very wide caret. Changed that width to 1. svn-id: r20842 --- gui/ThemeNew.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gui/ThemeNew.cpp') diff --git a/gui/ThemeNew.cpp b/gui/ThemeNew.cpp index 2cc9aa3ac3..25bf421a1a 100644 --- a/gui/ThemeNew.cpp +++ b/gui/ThemeNew.cpp @@ -729,7 +729,7 @@ void ThemeNew::drawCaret(const Common::Rect &r, bool erase, kState state) { if (!_initOk) return; - restoreBackground(Common::Rect(r.left, r.top, r.left+1, r.bottom)); + restoreBackground(r); if (!erase) { _screen.vLine(r.left, r.top, r.bottom, _colors[kCaretColor]); } else if (r.top >= 0) { -- cgit v1.2.3