From ee44d885a4629a29d3fedf567df25332e2614cea Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Thu, 3 May 2001 18:35:33 +0000 Subject: [PATCH] Make sure we recompute the visible region in DC hook. --- windows/dce.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/windows/dce.c b/windows/dce.c index 4c697d710c..400231ad08 100644 --- a/windows/dce.c +++ b/windows/dce.c @@ -671,7 +671,12 @@ BOOL16 WINAPI DCHook16( HDC16 hDC, WORD code, DWORD data, LPARAM lParam ) * means that we have to recompute the visible region. */ if( dce->DCXflags & DCX_DCEBUSY ) + { + /* Dirty bit has been cleared by caller, set it again so that + * pGetDC recomputes the visible region. */ + SetHookFlags16( dce->hDC, DCHF_INVALIDATEVISRGN ); USER_Driver.pGetDC( dce->hwndCurrent, dce->hDC, dce->hClipRgn, dce->DCXflags ); + } else /* non-fatal but shouldn't happen */ WARN("DC is not in use!\n"); break;