Commit 258d953a authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

user32: Use 1 unit caret width for Edit control.

parent 032356ec
...@@ -3902,7 +3902,7 @@ static void EDIT_WM_SetFocus(EDITSTATE *es) ...@@ -3902,7 +3902,7 @@ static void EDIT_WM_SetFocus(EDITSTATE *es)
ReleaseDC(es->hwndSelf, hdc); ReleaseDC(es->hwndSelf, hdc);
} }
CreateCaret(es->hwndSelf, 0, 2, es->line_height); CreateCaret(es->hwndSelf, 0, 1, es->line_height);
EDIT_SetCaretPos(es, es->selection_end, EDIT_SetCaretPos(es, es->selection_end,
es->flags & EF_AFTER_WRAP); es->flags & EF_AFTER_WRAP);
ShowCaret(es->hwndSelf); ShowCaret(es->hwndSelf);
...@@ -3952,7 +3952,7 @@ static void EDIT_WM_SetFont(EDITSTATE *es, HFONT font, BOOL redraw) ...@@ -3952,7 +3952,7 @@ static void EDIT_WM_SetFont(EDITSTATE *es, HFONT font, BOOL redraw)
EDIT_UpdateText(es, NULL, TRUE); EDIT_UpdateText(es, NULL, TRUE);
if (es->flags & EF_FOCUSED) { if (es->flags & EF_FOCUSED) {
DestroyCaret(); DestroyCaret();
CreateCaret(es->hwndSelf, 0, 2, es->line_height); CreateCaret(es->hwndSelf, 0, 1, es->line_height);
EDIT_SetCaretPos(es, es->selection_end, EDIT_SetCaretPos(es, es->selection_end,
es->flags & EF_AFTER_WRAP); es->flags & EF_AFTER_WRAP);
ShowCaret(es->hwndSelf); ShowCaret(es->hwndSelf);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment