Clear the DC dirty flag before calling SetDCState to avoid spurious

vis region updates.
This commit is contained in:
Alexandre Julliard 2002-04-22 22:37:34 +00:00
parent 48f26b7c4d
commit 06c665d75a

View file

@ -239,6 +239,8 @@ static INT DCE_ReleaseDC( DCE* dce )
if (dce->DCXflags & DCX_CACHE)
{
/* make the DC clean so that SetDCState doesn't try to update the vis rgn */
SetHookFlags16( dce->hDC, DCHF_VALIDATEVISRGN );
SetDCState16( dce->hDC, defaultDCstate );
dce->DCXflags &= ~DCX_DCEBUSY;
if (dce->DCXflags & DCX_DCEDIRTY)