From e7f30014c307cf69f9c4e7c472ee38338e0b2638 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Mon, 24 Jul 2017 17:04:35 +0200 Subject: [PATCH] user32: Always update the visible region for cross-process DCEs. Signed-off-by: Alexandre Julliard --- dlls/user32/painting.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dlls/user32/painting.c b/dlls/user32/painting.c index 2130473d39a..6cc9a7e40cf 100644 --- a/dlls/user32/painting.c +++ b/dlls/user32/painting.c @@ -1111,6 +1111,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 ); -- 2.11.4.GIT