simplify VIS_ComputeVisibleRegion

svn path=/trunk/; revision=28032
This commit is contained in:
Timo Kreuzer 2007-07-30 02:49:11 +00:00
parent b8c09110a6
commit 59d3012d08

View file

@ -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