[2/5] comctl32/listview: Slightly enlarge rectangle when drawing checkbox (resent2)
Nikolay Sivov
bunglehead at gmail.com
Mon Apr 20 07:21:02 CDT 2009
Currently a check marks intersects with its bounding rectangle.
This patch makes it look better.
Changelog:
- Slightly enlarge rectangle when drawing checkbox
>From 4779130ac198c4f23fcd184c74946584d216e775 Mon Sep 17 00:00:00 2001
From: Nikolay Sivov <bunglehead at gmail.com>
Date: Mon, 20 Apr 2009 07:37:33 -0400
Subject: Slightly enlarge rectangle when drawing checkbox
---
dlls/comctl32/listview.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/comctl32/listview.c b/dlls/comctl32/listview.c
index c5261e1..26f9ef3 100644
--- a/dlls/comctl32/listview.c
+++ b/dlls/comctl32/listview.c
@@ -7209,7 +7209,7 @@ static HIMAGELIST LISTVIEW_CreateCheckBoxIL(const LISTVIEW_INFO *infoPtr)
hbm_orig = SelectObject(hdc, hbm_mask);
FillRect(hdc, &rc, hbr_white);
- InflateRect(&rc, -3, -3);
+ InflateRect(&rc, -2, -2);
FillRect(hdc, &rc, hbr_black);
SelectObject(hdc, hbm_im);
--
1.5.6.5
More information about the wine-patches
mailing list