Author: tkreuzer
Date: Mon Jul 30 06:49:11 2007
New Revision: 28032
URL:
http://svn.reactos.org/svn/reactos?rev=28032&view=rev
Log:
simplify VIS_ComputeVisibleRegion
Modified:
trunk/reactos/subsystems/win32/win32k/ntuser/vis.c
Modified: trunk/reactos/subsystems/win32/win32k/ntuser/vis.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/nt…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/ntuser/vis.c (original)
+++ trunk/reactos/subsystems/win32/win32k/ntuser/vis.c Mon Jul 30 06:49:11 2007
@@ -47,21 +47,12 @@
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);
}
-
- VisRgn = UnsafeIntCreateRectRgnIndirect(&Window->WindowRect);
+ else
+ {
+ VisRgn = UnsafeIntCreateRectRgnIndirect(&Window->WindowRect);
+ }
/*
* Walk through all parent windows and for each clip the visble region