Commit e7c909a1 authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

user32: Use whole window rectangle for UpdateLayeredWindow.

parent 77e1b7a1
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment