[2/2] user32: Use 1 unit caret width for Edit control
Nikolay Sivov
bunglehead at gmail.com
Wed Mar 4 17:25:15 CST 2009
Currently used 2 unit width caret looks too bold comparing with native look.
If there was any reason to use 2 unit width I'd be interested to now it.
Chnagelog:
- Use 1 unit caret width for Edit control
>From 43eb12d0da09277d375ae75bcd9fb709df4ffac4 Mon Sep 17 00:00:00 2001
From: Nikolay Sivov <bunglehead at gmail.com>
Date: Wed, 4 Mar 2009 18:03:55 -0500
Subject: Use 1 unit caret width for Edit control
---
dlls/user32/edit.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/user32/edit.c b/dlls/user32/edit.c
index ee9fb3f..eadcc3d 100644
--- a/dlls/user32/edit.c
+++ b/dlls/user32/edit.c
@@ -3902,7 +3902,7 @@ static void EDIT_WM_SetFocus(EDITSTATE *es)
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,
es->flags & EF_AFTER_WRAP);
ShowCaret(es->hwndSelf);
@@ -3952,7 +3952,7 @@ static void EDIT_WM_SetFont(EDITSTATE *es, HFONT font, BOOL redraw)
EDIT_UpdateText(es, NULL, TRUE);
if (es->flags & EF_FOCUSED) {
DestroyCaret();
- CreateCaret(es->hwndSelf, 0, 2, es->line_height);
+ CreateCaret(es->hwndSelf, 0, 1, es->line_height);
EDIT_SetCaretPos(es, es->selection_end,
es->flags & EF_AFTER_WRAP);
ShowCaret(es->hwndSelf);
--
1.5.6.5
More information about the wine-patches
mailing list