mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 17:25:55 +00:00
simplify VIS_ComputeVisibleRegion
svn path=/trunk/; revision=28032
This commit is contained in:
parent
b8c09110a6
commit
59d3012d08
1 changed files with 5 additions and 14 deletions
|
@ -47,21 +47,12 @@ VIS_ComputeVisibleRegion(
|
|||
|
||||
if (ClientArea)
|
||||
{
|
||||
if (!(ClipRgn = VIS_ComputeVisibleRegion(Window, FALSE, ClipChildren, ClipSiblings)))
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
if (!(VisRgn = UnsafeIntCreateRectRgnIndirect(&Window->ClientRect)))
|
||||
{
|
||||
NtGdiDeleteObject(VisRgn);
|
||||
return NULL;
|
||||
}
|
||||
NtGdiCombineRgn(VisRgn, VisRgn, ClipRgn, RGN_AND);
|
||||
NtGdiDeleteObject(ClipRgn);
|
||||
return VisRgn;
|
||||
VisRgn = UnsafeIntCreateRectRgnIndirect(&Window->ClientRect);
|
||||
}
|
||||
else
|
||||
{
|
||||
VisRgn = UnsafeIntCreateRectRgnIndirect(&Window->WindowRect);
|
||||
}
|
||||
|
||||
VisRgn = UnsafeIntCreateRectRgnIndirect(&Window->WindowRect);
|
||||
|
||||
/*
|
||||
* Walk through all parent windows and for each clip the visble region
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue