mirror of
https://github.com/reactos/reactos.git
synced 2025-01-13 01:22:03 +00:00
Limit invalidate region if required
svn path=/trunk/; revision=19894
This commit is contained in:
parent
a213198509
commit
052218fc23
1 changed files with 13 additions and 0 deletions
|
@ -319,6 +319,19 @@ IntInvalidateWindows(PWINDOW_OBJECT Window, HRGN hRgn, ULONG Flags)
|
|||
BOOL HadPaintMessage, HadNCPaintMessage;
|
||||
BOOL HasPaintMessage, HasNCPaintMessage;
|
||||
|
||||
/*
|
||||
* If the nonclient is not to be redrawn, clip the region to the client
|
||||
* rect
|
||||
*/
|
||||
if (0 != (Flags & RDW_INVALIDATE) && 0 == (Flags & RDW_FRAME))
|
||||
{
|
||||
HRGN hRgnClient;
|
||||
|
||||
hRgnClient = UnsafeIntCreateRectRgnIndirect(&Window->ClientRect);
|
||||
RgnType = NtGdiCombineRgn(hRgn, hRgn, hRgnClient, RGN_AND);
|
||||
NtGdiDeleteObject(hRgnClient);
|
||||
}
|
||||
|
||||
/*
|
||||
* Clip the given region with window rectangle (or region)
|
||||
*/
|
||||
|
|
Loading…
Reference in a new issue