Module: wine Branch: stable Commit: 341f3a5effae03eef3ed6588203f7716476ced6b URL: http://source.winehq.org/git/wine.git/?a=commit;h=341f3a5effae03eef3ed658820...
Author: Alexandre Julliard julliard@winehq.org Date: Mon Jul 24 17:04:35 2017 +0200
user32: Always update the visible region for cross-process DCEs.
Signed-off-by: Alexandre Julliard julliard@winehq.org (cherry picked from commit e7f30014c307cf69f9c4e7c472ee38338e0b2638) Signed-off-by: Michael Stefaniuc mstefani@winehq.org
---
dlls/user32/painting.c | 3 +++ 1 file changed, 3 insertions(+)
diff --git a/dlls/user32/painting.c b/dlls/user32/painting.c index 622dcad..d555a0f 100644 --- a/dlls/user32/painting.c +++ b/dlls/user32/painting.c @@ -1053,6 +1053,9 @@ HDC WINAPI GetDCEx( HWND hwnd, HRGN hrgnClip, DWORD flags ) dce->hwnd = hwnd; dce->flags = (dce->flags & ~user_flags) | (flags & user_flags);
+ /* cross-process invalidation is not supported yet, so always update the vis rgn */ + if (!WIN_IsCurrentProcess( hwnd )) bUpdateVisRgn = TRUE; + if (SetHookFlags( dce->hdc, DCHF_VALIDATEVISRGN )) bUpdateVisRgn = TRUE; /* DC was dirty */
if (bUpdateVisRgn) update_visible_region( dce );