Nikolay Sivov : user32: Use whole window rectangle for UpdateLayeredWindow.

Alexandre Julliard julliard at winehq.org
Wed Feb 24 10:21:35 CST 2010


Module: wine
Branch: master
Commit: e7c909a1bedfc45a04f2b8eb4109334f3edd300c
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=e7c909a1bedfc45a04f2b8eb4109334f3edd300c

Author: Nikolay Sivov <nsivov at codeweavers.com>
Date:   Wed Feb 24 17:30:48 2010 +0300

user32: Use whole window rectangle for UpdateLayeredWindow.

---

 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;




More information about the wine-cvs mailing list