Use whole window rectangle for UpdateLayeredWindow

Nikolay Sivov nsivov at codeweavers.com
Wed Feb 24 08:30:48 CST 2010


---
 dlls/user32/win.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/dlls/user32/win.c b/dlls/user32/win.c
index 8ed49d8..3a61fc1 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;
-- 
1.5.6.5


--=-6tRhsDliVJKjy9Xhaptd--




More information about the wine-patches mailing list