user32: Use whole window rectangle for UpdateLayeredWindow.
This commit is contained in:
parent
77e1b7a13f
commit
e7c909a1be
|
@ -3398,14 +3398,15 @@ BOOL WINAPI UpdateLayeredWindowIndirect( HWND hwnd, const UPDATELAYEREDWINDOWINF
|
|||
|
||||
if (info->hdcSrc)
|
||||
{
|
||||
HDC hdc = GetDCEx( hwnd, 0, DCX_CACHE );
|
||||
HDC hdc = GetWindowDC( hwnd );
|
||||
|
||||
if (hdc)
|
||||
{
|
||||
int x = 0, y = 0;
|
||||
RECT rect;
|
||||
|
||||
GetClientRect( hwnd, &rect );
|
||||
GetWindowRect( hwnd, &rect );
|
||||
OffsetRect( &rect, -rect.left, -rect.top);
|
||||
if (info->pptSrc)
|
||||
{
|
||||
x = info->pptSrc->x;
|
||||
|
|
Loading…
Reference in New Issue