Alexandre Julliard : user32: Preserve the surface contents when changing the WS_EX_LAYERED bit.
Alexandre Julliard
julliard at wine.codeweavers.com
Wed Dec 9 09:47:26 CST 2015
Module: wine
Branch: master
Commit: e5ef460d7dc9c9739da92349eb5d6bf827d7ce8b
URL: http://source.winehq.org/git/wine.git/?a=commit;h=e5ef460d7dc9c9739da92349eb5d6bf827d7ce8b
Author: Alexandre Julliard <julliard at winehq.org>
Date: Wed Dec 9 20:10:24 2015 +0900
user32: Preserve the surface contents when changing the WS_EX_LAYERED bit.
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/user32/win.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/dlls/user32/win.c b/dlls/user32/win.c
index 887fd48..e378ab9 100644
--- a/dlls/user32/win.c
+++ b/dlls/user32/win.c
@@ -438,11 +438,13 @@ static void send_parent_notify( HWND hwnd, UINT msg )
*/
static void update_window_state( HWND hwnd )
{
- RECT window_rect, client_rect;
+ RECT window_rect, client_rect, valid_rects[2];
WIN_GetRectangles( hwnd, COORDS_PARENT, &window_rect, &client_rect );
+ valid_rects[0] = valid_rects[1] = client_rect;
set_window_pos( hwnd, 0, SWP_NOSIZE | SWP_NOMOVE | SWP_NOCLIENTSIZE | SWP_NOCLIENTMOVE |
- SWP_NOZORDER | SWP_NOACTIVATE | SWP_NOREDRAW, &window_rect, &client_rect, NULL );
+ SWP_NOZORDER | SWP_NOACTIVATE | SWP_NOREDRAW,
+ &window_rect, &client_rect, valid_rects );
}
More information about the wine-cvs
mailing list