mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-03 04:13:31 +00:00
simplify VIS_ComputeVisibleRegion
svn path=/trunk/; revision=28032
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user