Clear the DC dirty flag before calling SetDCState to avoid spurious
vis region updates.
This commit is contained in:
parent
48f26b7c4d
commit
06c665d75a
|
@ -239,6 +239,8 @@ static INT DCE_ReleaseDC( DCE* dce )
|
||||||
|
|
||||||
if (dce->DCXflags & DCX_CACHE)
|
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 );
|
SetDCState16( dce->hDC, defaultDCstate );
|
||||||
dce->DCXflags &= ~DCX_DCEBUSY;
|
dce->DCXflags &= ~DCX_DCEBUSY;
|
||||||
if (dce->DCXflags & DCX_DCEDIRTY)
|
if (dce->DCXflags & DCX_DCEDIRTY)
|
||||||
|
|
Loading…
Reference in New Issue