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