[NTUSER] Remove some extra repaints/redraws (#6827)

Reposition logic and add Flags testing for RgnType == NULLREGION.
This was suggested by @HBelusca and approved by @I_Kill_Bugs
This commit is contained in:
Doug Lyons 2024-05-04 07:35:53 -05:00 committed by GitHub
parent 30226f834d
commit 29235147e2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -698,6 +698,12 @@ IntInvalidateWindows(PWND Wnd, PREGION Rgn, ULONG Flags)
RgnType = NULLREGION;
}
/* Nothing to paint, just return */
if ((RgnType == NULLREGION && (Flags & RDW_INVALIDATE)) || RgnType == ERROR)
{
return;
}
/*
* Save current state of pending updates
*/