mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 19:49:50 +00:00
comctl32: Remove unnecessary OffsetRect() calls.
Target rectangles are already offset by previous OffsetRect() calls. Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
665fa81a51
commit
c1395d9255
4 changed files with 0 additions and 4 deletions
|
@ -3664,7 +3664,6 @@ static void EDIT_WM_NCPaint(HWND hwnd, HRGN region)
|
|||
OffsetRect(&r, -r.left, -r.top);
|
||||
|
||||
dc = GetDCEx(hwnd, region, DCX_WINDOW|DCX_INTERSECTRGN);
|
||||
OffsetRect(&r, -r.left, -r.top);
|
||||
|
||||
if (IsThemeBackgroundPartiallyTransparent(theme, part, state))
|
||||
DrawThemeParentBackground(hwnd, dc, &r);
|
||||
|
|
|
@ -1211,7 +1211,6 @@ static LRESULT LISTBOX_NCPaint( LB_DESCR *descr, HRGN region )
|
|||
OffsetRect(&r, -r.left, -r.top);
|
||||
|
||||
hdc = GetDCEx(descr->self, region, DCX_WINDOW|DCX_INTERSECTRGN);
|
||||
OffsetRect(&r, -r.left, -r.top);
|
||||
|
||||
if (IsThemeBackgroundPartiallyTransparent (theme, 0, 0))
|
||||
DrawThemeParentBackground(descr->self, hdc, &r);
|
||||
|
|
|
@ -10636,7 +10636,6 @@ static BOOL LISTVIEW_NCPaint(const LISTVIEW_INFO *infoPtr, HRGN region)
|
|||
OffsetRect(&r, -r.left, -r.top);
|
||||
|
||||
dc = GetDCEx(infoPtr->hwndSelf, region, DCX_WINDOW|DCX_INTERSECTRGN);
|
||||
OffsetRect(&r, -r.left, -r.top);
|
||||
|
||||
if (IsThemeBackgroundPartiallyTransparent (theme, 0, 0))
|
||||
DrawThemeParentBackground(infoPtr->hwndSelf, dc, &r);
|
||||
|
|
|
@ -5459,7 +5459,6 @@ static BOOL TREEVIEW_NCPaint (const TREEVIEW_INFO *infoPtr, HRGN region, LPARAM
|
|||
OffsetRect(&r, -r.left, -r.top);
|
||||
|
||||
dc = GetDCEx(infoPtr->hwnd, region, DCX_WINDOW|DCX_INTERSECTRGN);
|
||||
OffsetRect(&r, -r.left, -r.top);
|
||||
|
||||
if (IsThemeBackgroundPartiallyTransparent (theme, 0, 0))
|
||||
DrawThemeParentBackground(infoPtr->hwnd, dc, &r);
|
||||
|
|
Loading…
Reference in a new issue