[2/6] comctl32/tab: Fix button background filling on TCS_BUTTONS
Nikolay Sivov
bunglehead at gmail.com
Mon Mar 23 15:33:28 CDT 2009
This is a cosmetic change. I've noticed it with ControlSpy.
Changelog:
- Fix button background filling on TCS_BUTTONS
>From dfd399accd5e1e9206e377475bc9ebbe2be429e9 Mon Sep 17 00:00:00 2001
From: Nikolay Sivov <bunglehead at gmail.com>
Date: Mon, 23 Mar 2009 15:47:16 -0400
Subject: Fix button background filling on TCS_BUTTONS
---
dlls/comctl32/tab.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/comctl32/tab.c b/dlls/comctl32/tab.c
index ae4f035..b8f638d 100644
--- a/dlls/comctl32/tab.c
+++ b/dlls/comctl32/tab.c
@@ -1433,7 +1433,6 @@ TAB_EraseTabInterior(const TAB_INFO *infoPtr, HDC hdc, INT iItem, RECT *drawRect
BOOL deleteBrush = TRUE;
RECT rTemp = *drawRect;
- InflateRect(&rTemp, -2, -2);
if (lStyle & TCS_BUTTONS)
{
if (iItem == infoPtr->iSelected)
@@ -1473,6 +1472,7 @@ TAB_EraseTabInterior(const TAB_INFO *infoPtr, HDC hdc, INT iItem, RECT *drawRect
}
else /* !TCS_BUTTONS */
{
+ InflateRect(&rTemp, -2, -2);
if (!GetWindowTheme (infoPtr->hwnd))
FillRect(hdc, &rTemp, hbr);
}
--
1.5.6.5
More information about the wine-patches
mailing list