riched20: Paint the selection while it's being extended by dragging.

This commit is contained in:
Phil Krylov 2006-01-31 12:58:59 +01:00 committed by Alexandre Julliard
parent 033ca37367
commit 17a83dc3e3
1 changed files with 4 additions and 2 deletions

View File

@ -751,16 +751,18 @@ void ME_MouseMove(ME_TextEditor *editor, int x, int y)
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);
}