aboutsummaryrefslogtreecommitdiff
path: root/gui
diff options
context:
space:
mode:
authorTorbjörn Andersson2006-02-24 20:25:34 +0000
committerTorbjörn Andersson2006-02-24 20:25:34 +0000
commit2cb8832991eccd9c11c170375309b28e1f52ef33 (patch)
tree875a45fe8a40e09777aee5146cd8cbbeef115afd /gui
parent66b5b7b3f375c516dbd7629528596b1ac2ae8f38 (diff)
downloadscummvm-rg350-2cb8832991eccd9c11c170375309b28e1f52ef33.tar.gz
scummvm-rg350-2cb8832991eccd9c11c170375309b28e1f52ef33.tar.bz2
scummvm-rg350-2cb8832991eccd9c11c170375309b28e1f52ef33.zip
Fixed redraw glitch. Our editable widgets were asking the theme to draw a very
wide caret. Changed that width to 1. svn-id: r20842
Diffstat (limited to 'gui')
-rw-r--r--gui/ThemeNew.cpp2
-rw-r--r--gui/editable.cpp2
2 files changed, 2 insertions, 2 deletions
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) {
diff --git a/gui/editable.cpp b/gui/editable.cpp
index 81b91dc11a..679e1dad58 100644
--- a/gui/editable.cpp
+++ b/gui/editable.cpp
@@ -155,7 +155,7 @@ void EditableWidget::drawCaret(bool erase) {
x += getAbsX();
y += getAbsY();
- g_gui.theme()->drawCaret(Common::Rect(x, y, x+editRect.width(), y+editRect.height()-2), erase);
+ g_gui.theme()->drawCaret(Common::Rect(x, y, x + 1, y + editRect.height() - 2), erase);
_caretVisible = !erase;
}