Make sure we recompute the visible region in DC hook.
This commit is contained in:
parent
91857a6c1a
commit
ee44d885a4
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue