[2/4] comctl32/listview: Slightly enlarge rectangle when drawing checkbox

Nikolay Sivov bunglehead at gmail.com
Thu Apr 16 17:45:43 CDT 2009


Currently a check marks intersects with its bounding rectangle.
This makes it look better.

Changelog:
    - Slightly enlarge rectangle when drawing checkbox

>From ba086f209730136667855f8104c14c9d30bd8fd5 Mon Sep 17 00:00:00 2001
From: Nikolay Sivov <bunglehead at gmail.com>
Date: Thu, 16 Apr 2009 17:31:21 -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