Dan Kegel : riched20: Don' t need to redraw when changing selection from none to none.
Alexandre Julliard
julliard at winehq.org
Thu May 10 14:17:58 CDT 2012
Module: wine
Branch: master
Commit: 499604337461d0fbd9f922022fa86a9fc0434317
URL: http://source.winehq.org/git/wine.git/?a=commit;h=499604337461d0fbd9f922022fa86a9fc0434317
Author: Dan Kegel <dank at kegel.com>
Date: Wed May 9 14:53:01 2012 -0700
riched20: Don't need to redraw when changing selection from none to none.
---
dlls/riched20/caret.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/dlls/riched20/caret.c b/dlls/riched20/caret.c
index 093bd20..7decff2 100644
--- a/dlls/riched20/caret.c
+++ b/dlls/riched20/caret.c
@@ -146,8 +146,11 @@ int ME_SetSelection(ME_TextEditor *editor, int from, int to)
{
int start, end;
ME_GetSelectionOfs(editor, &start, &end);
- editor->pCursors[1] = editor->pCursors[0];
- ME_Repaint(editor);
+ if (start != end)
+ {
+ editor->pCursors[1] = editor->pCursors[0];
+ ME_Repaint(editor);
+ }
ME_ClearTempStyle(editor);
return end;
}
More information about the wine-cvs
mailing list