Module: wine Branch: master Commit: 5702a941ad71ae65ae1c802addde82210c7adbe4 URL: http://source.winehq.org/git/wine.git/?a=commit;h=5702a941ad71ae65ae1c802add...
Author: Alexandre Julliard julliard@winehq.org Date: Sun May 23 09:26:05 2010 +0200
user32: Don't repaint the caret in SetCaretPos if the position doesn't change.
---
dlls/user32/caret.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/user32/caret.c b/dlls/user32/caret.c index 308336d..53bb5b4 100644 --- a/dlls/user32/caret.c +++ b/dlls/user32/caret.c @@ -269,7 +269,7 @@ BOOL WINAPI SetCaretPos( INT x, INT y ) } } SERVER_END_REQ; - if (ret && !hidden) + if (ret && !hidden && (x != r.left || y != r.top)) { if (old_state) CARET_DisplayCaret( hwnd, &r ); r.right += x - r.left;