Phil Krylov : riched20: Paint the selection while it's being extended
by dragging.
Alexandre Julliard
julliard at wine.codeweavers.com
Tue Jan 31 06:04:30 CST 2006
Module: wine
Branch: refs/heads/master
Commit: 17a83dc3e3e036d359b77ae2be59dffec61d4d1a
URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=17a83dc3e3e036d359b77ae2be59dffec61d4d1a
Author: Phil Krylov <phil at newstar.rinet.ru>
Date: Tue Jan 31 12:58:59 2006 +0100
riched20: Paint the selection while it's being extended by dragging.
---
dlls/riched20/caret.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/dlls/riched20/caret.c b/dlls/riched20/caret.c
index df99987..077affa 100644
--- a/dlls/riched20/caret.c
+++ b/dlls/riched20/caret.c
@@ -751,16 +751,18 @@ void ME_MouseMove(ME_TextEditor *editor,
y += ME_GetYScrollPos(editor);
tmp_cursor = editor->pCursors[0];
- if (!ME_FindPixelPos(editor, x, y, &editor->pCursors[0], &editor->bCaretAtEnd))
+ if (!ME_FindPixelPos(editor, x, y, &tmp_cursor, &editor->bCaretAtEnd))
/* return */;
if (tmp_cursor.pRun == editor->pCursors[0].pRun &&
tmp_cursor.nOffset == editor->pCursors[0].nOffset)
return;
- HideCaret(editor->hWnd);
ME_InvalidateSelection(editor);
+ editor->pCursors[0] = tmp_cursor;
+ HideCaret(editor->hWnd);
ME_MoveCaret(editor);
+ ME_InvalidateSelection(editor);
ShowCaret(editor->hWnd);
ME_SendSelChange(editor);
}
More information about the wine-cvs
mailing list