mirror of
https://github.com/reactos/reactos.git
synced 2026-06-06 21:51:53 +08:00
[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:
@@ -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
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user