[1/4] comctl32: Fix button background filling on TCS_BUTTONS
Nikolay Sivov
bunglehead at gmail.com
Fri Mar 20 13:34:19 CDT 2009
There's no need to InflateRect a rectangle filled with a background pattern
for pressed tab button.
Changelog:
- Fix button background filling on TCS_BUTTONS
>From 9fab1976311d56ae8d582df31ae7032793a7fbf1 Mon Sep 17 00:00:00 2001
From: Nikolay Sivov <bunglehead at gmail.com>
Date: Fri, 20 Mar 2009 14:18:55 -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 3880ceb..3af09cb 100644
--- a/dlls/comctl32/tab.c
+++ b/dlls/comctl32/tab.c
@@ -1434,7 +1434,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)
@@ -1474,6 +1473,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