Skip to content

Commit

Permalink
Fixed bug to create shadow for window
Browse files Browse the repository at this point in the history
Signed-off-by: jiajia_deng <[email protected]>
  • Loading branch information
nmgwddj committed May 4, 2018
1 parent 45416a1 commit 31d3249
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DuiLib/Utils/WndShadow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 31d3249

Please sign in to comment.