[3/5] comctl32/listview: Slightly enlarge rectangle when drawing checkbox (resent)
Nikolay Sivov
bunglehead at gmail.com
Mon Apr 20 02:54:48 CDT 2009
Currently a check marks intersects with its bounding rectangle.
This patch makes it look better.
Changelog:
- Slightly enlarge rectangle when drawing checkbox
Changelog:
- Slightly enlarge rectangle when drawing checkbox
>From fd6f0d1bbc4f7f4d744e38d7da3c434f86b71b1b Mon Sep 17 00:00:00 2001
From: Nikolay Sivov <bunglehead at gmail.com>
Date: Mon, 20 Apr 2009 02:55:15 -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 7d8b593..d4fdaa6 100644
--- a/dlls/comctl32/listview.c
+++ b/dlls/comctl32/listview.c
@@ -7205,7 +7205,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