Author: jimtabor
Date: Mon Mar 21 02:20:24 2011
New Revision: 51102
URL:
http://svn.reactos.org/svn/reactos?rev=51102&view=rev
Log:
[Win32k]
- Setup RectInRegion for internal use.
Modified:
trunk/reactos/subsystems/win32/win32k/include/region.h
trunk/reactos/subsystems/win32/win32k/objects/rect.c
trunk/reactos/subsystems/win32/win32k/objects/region.c
Modified: trunk/reactos/subsystems/win32/win32k/include/region.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/in…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/include/region.h [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/include/region.h [iso-8859-1] Mon Mar 21
02:20:24 2011
@@ -44,6 +44,7 @@
BOOL FASTCALL IntGdiPaintRgn(PDC, HRGN );
HRGN FASTCALL IntCreatePolyPolygonRgn(PPOINT, PULONG, INT, INT);
INT FASTCALL IntGdiOffsetRgn(PROSRGNDATA,INT,INT);
+BOOL FASTCALL IntRectInRegion(HRGN,LPRECTL);
INT FASTCALL IntGdiCombineRgn(PROSRGNDATA, PROSRGNDATA, PROSRGNDATA, INT);
INT FASTCALL REGION_Complexity(PROSRGNDATA);
Modified: trunk/reactos/subsystems/win32/win32k/objects/rect.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/ob…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/objects/rect.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/objects/rect.c [iso-8859-1] Mon Mar 21 02:20:24
2011
@@ -16,7 +16,6 @@
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
-/* $Id$ */
#include <win32k.h>
Modified: trunk/reactos/subsystems/win32/win32k/objects/region.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/ob…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/objects/region.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/objects/region.c [iso-8859-1] Mon Mar 21
02:20:24 2011
@@ -3204,6 +3204,27 @@
return hrgn;
}
+BOOL
+FASTCALL
+IntRectInRegion(
+ HRGN hRgn,
+ LPRECTL rc
+)
+{
+ PROSRGNDATA Rgn;
+ BOOL Ret;
+
+ if (!(Rgn = RGNOBJAPI_Lock(hRgn, NULL)))
+ {
+ return ERROR;
+ }
+
+ Ret = REGION_RectInRegion(Rgn, rc);
+ RGNOBJAPI_Unlock(Rgn);
+ return Ret;
+}
+
+
//
// NtGdi Exported Functions
//
@@ -3765,15 +3786,8 @@
LPRECTL unsaferc
)
{
- PROSRGNDATA Rgn;
RECTL rc = {0};
- BOOL Ret;
NTSTATUS Status = STATUS_SUCCESS;
-
- if (!(Rgn = RGNOBJAPI_Lock(hRgn, NULL)))
- {
- return ERROR;
- }
_SEH2_TRY
{
@@ -3788,15 +3802,12 @@
if (!NT_SUCCESS(Status))
{
- RGNOBJAPI_Unlock(Rgn);
SetLastNtError(Status);
DPRINT1("NtGdiRectInRegion: bogus rc\n");
return ERROR;
}
- Ret = REGION_RectInRegion(Rgn, &rc);
- RGNOBJAPI_Unlock(Rgn);
- return Ret;
+ return IntRectInRegion(hRgn, &rc);
}
BOOL