From e7c909a1bedfc45a04f2b8eb4109334f3edd300c Mon Sep 17 00:00:00 2001 From: Nikolay Sivov Date: Wed, 24 Feb 2010 17:30:48 +0300 Subject: [PATCH] user32: Use whole window rectangle for UpdateLayeredWindow. --- dlls/user32/win.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/dlls/user32/win.c b/dlls/user32/win.c index 8ed49d82d45..3a61fc1f783 100644 --- a/dlls/user32/win.c +++ b/dlls/user32/win.c @@ -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;