From 5bc2785b722affc33bbf8feedf98a71e70374579 Mon Sep 17 00:00:00 2001 From: Reece Dunn Date: Wed, 12 Nov 2008 00:21:55 +0000 Subject: [PATCH] uxtheme: Draw the correct part of the themed parent background to the DC. --- dlls/uxtheme/draw.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dlls/uxtheme/draw.c b/dlls/uxtheme/draw.c index 8280c66cbdd..9e220254db3 100644 --- a/dlls/uxtheme/draw.c +++ b/dlls/uxtheme/draw.c @@ -100,7 +100,7 @@ HRESULT WINAPI DrawThemeParentBackground(HWND hwnd, HDC hdc, RECT *prc) hParent = hwnd; if(prc) { CopyRect(&rt, prc); - MapWindowPoints(hwnd, NULL, (LPPOINT)&rt, 2); + MapWindowPoints(hwnd, hParent, (LPPOINT)&rt, 2); clip = CreateRectRgn(0,0,1,1); hasClip = GetClipRgn(hdc, clip); @@ -110,8 +110,8 @@ HRESULT WINAPI DrawThemeParentBackground(HWND hwnd, HDC hdc, RECT *prc) IntersectClipRect(hdc, prc->left, prc->top, prc->right, prc->bottom); } else { - GetClientRect(hParent, &rt); - MapWindowPoints(hParent, NULL, (LPPOINT)&rt, 2); + GetClientRect(hwnd, &rt); + MapWindowPoints(hwnd, hParent, (LPPOINT)&rt, 2); } OffsetViewportOrgEx(hdc, -rt.left, -rt.top, &org); -- 2.11.4.GIT