Nikolay Sivov : comctl32/tab: Fix button background filling on TCS_BUTTONS.
Module: wine Branch: master Commit: b896b92061d1b0f98fe526065e49992e2e9dac60 URL: http://source.winehq.org/git/wine.git/?a=commit;h=b896b92061d1b0f98fe526065e... Author: Nikolay Sivov <bunglehead(a)gmail.com> Date: Mon Mar 23 15:47:16 2009 -0400 comctl32/tab: 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); }
participants (1)
-
Alexandre Julliard