Make sure we recompute the visible region in DC hook.

This commit is contained in:
Alexandre Julliard 2001-05-03 18:35:33 +00:00
parent 91857a6c1a
commit ee44d885a4
1 changed files with 5 additions and 0 deletions

View File

@ -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;