mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 14:53:09 +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 (ClientArea)
|
||||||
{
|
{
|
||||||
if (!(ClipRgn = VIS_ComputeVisibleRegion(Window, FALSE, ClipChildren, ClipSiblings)))
|
VisRgn = UnsafeIntCreateRectRgnIndirect(&Window->ClientRect);
|
||||||
{
|
}
|
||||||
return NULL;
|
else
|
||||||
}
|
{
|
||||||
if (!(VisRgn = UnsafeIntCreateRectRgnIndirect(&Window->ClientRect)))
|
VisRgn = UnsafeIntCreateRectRgnIndirect(&Window->WindowRect);
|
||||||
{
|
|
||||||
NtGdiDeleteObject(VisRgn);
|
|
||||||
return NULL;
|
|
||||||
}
|
|
||||||
NtGdiCombineRgn(VisRgn, VisRgn, ClipRgn, RGN_AND);
|
|
||||||
NtGdiDeleteObject(ClipRgn);
|
|
||||||
return VisRgn;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
VisRgn = UnsafeIntCreateRectRgnIndirect(&Window->WindowRect);
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Walk through all parent windows and for each clip the visble region
|
* Walk through all parent windows and for each clip the visble region
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue