From 31d32495f06a4e6999b702f23a5cf88a757f0fbc Mon Sep 17 00:00:00 2001 From: jiajia_deng <2894220@gmail.com> Date: Fri, 4 May 2018 12:00:29 +0800 Subject: [PATCH] Fixed bug to create shadow for window Signed-off-by: jiajia_deng <2894220@gmail.com> --- DuiLib/Utils/WndShadow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DuiLib/Utils/WndShadow.cpp b/DuiLib/Utils/WndShadow.cpp index c776f0f8..09df47f5 100644 --- a/DuiLib/Utils/WndShadow.cpp +++ b/DuiLib/Utils/WndShadow.cpp @@ -403,7 +403,7 @@ void CWndShadow::MakeShadow(UINT32 *pShadBits, HWND hParent, RECT *rcParent) // The algorithm is optimized by assuming parent window is just "one piece" and without "wholes" on it // Get the region of parent window, - HRGN hParentRgn = CreateRectRgn(0, 0, 0, 0); + HRGN hParentRgn = CreateRectRgn(0, 0, rcParent->right - rcParent->left, rcParent->bottom - rcParent->top); GetWindowRgn(hParent, hParentRgn); // Determine the Start and end point of each horizontal scan line