user32: Use whole window rectangle for UpdateLayeredWindow.

This commit is contained in:
Nikolay Sivov 2010-02-24 17:30:48 +03:00 committed by Alexandre Julliard
parent 77e1b7a13f
commit e7c909a1be
1 changed files with 3 additions and 2 deletions

View File

@ -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;