Alexandre Julliard : user32: Invalide DCEs also when resizing a hidden window, or when minimizing.

Alexandre Julliard julliard at winehq.org
Tue Apr 22 06:47:11 CDT 2008


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

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Mon Apr 21 20:31:14 2008 +0200

user32: Invalide DCEs also when resizing a hidden window, or when minimizing.

---

 dlls/user32/winpos.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/user32/winpos.c b/dlls/user32/winpos.c
index 4a79352..78749a9 100644
--- a/dlls/user32/winpos.c
+++ b/dlls/user32/winpos.c
@@ -1909,8 +1909,8 @@ BOOL set_window_pos( HWND hwnd, HWND insert_after, UINT swp_flags,
         USER_Driver->pSetWindowPos( hwnd, insert_after, swp_flags, window_rect,
                                     client_rect, &visible_rect, valid_rects );
 
-        if ((((swp_flags & SWP_AGG_NOPOSCHANGE) != SWP_AGG_NOPOSCHANGE) && (new_style & WS_VISIBLE)) ||
-            (swp_flags & (SWP_HIDEWINDOW | SWP_SHOWWINDOW)))
+        if (((swp_flags & SWP_AGG_NOPOSCHANGE) != SWP_AGG_NOPOSCHANGE) ||
+            (swp_flags & (SWP_HIDEWINDOW | SWP_SHOWWINDOW | SWP_STATECHANGED)))
             invalidate_dce( hwnd, &old_window_rect );
     }
     return ret;




More information about the wine-cvs mailing list