Author: tkreuzer
Date: Thu Dec 18 08:11:36 2014
New Revision: 65723
URL:
http://svn.reactos.org/svn/reactos?rev=65723&view=rev
Log:
[WIN32K]
Move NtGdiInvertRgn to bitblt.c
Modified:
trunk/reactos/win32ss/gdi/ntgdi/bitblt.c
trunk/reactos/win32ss/gdi/ntgdi/region.c
Modified: trunk/reactos/win32ss/gdi/ntgdi/bitblt.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/gdi/ntgdi/bitblt.c…
==============================================================================
--- trunk/reactos/win32ss/gdi/ntgdi/bitblt.c [iso-8859-1] (original)
+++ trunk/reactos/win32ss/gdi/ntgdi/bitblt.c [iso-8859-1] Thu Dec 18 08:11:36 2014
@@ -1010,6 +1010,38 @@
return Ret;
}
+BOOL
+APIENTRY
+NtGdiInvertRgn(
+ HDC hDC,
+ HRGN hRgn)
+{
+ PREGION RgnData;
+ ULONG i;
+ PRECTL rc;
+
+ RgnData = RGNOBJAPI_Lock(hRgn, NULL);
+ if (RgnData == NULL)
+ {
+ EngSetLastError(ERROR_INVALID_HANDLE);
+ return FALSE;
+ }
+
+ rc = RgnData->Buffer;
+ for (i = 0; i < RgnData->rdh.nCount; i++)
+ {
+
+ if (!NtGdiPatBlt(hDC, rc->left, rc->top, rc->right - rc->left,
rc->bottom - rc->top, DSTINVERT))
+ {
+ RGNOBJAPI_Unlock(RgnData);
+ return FALSE;
+ }
+ rc++;
+ }
+
+ RGNOBJAPI_Unlock(RgnData);
+ return TRUE;
+}
COLORREF
APIENTRY
Modified: trunk/reactos/win32ss/gdi/ntgdi/region.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/gdi/ntgdi/region.c…
==============================================================================
--- trunk/reactos/win32ss/gdi/ntgdi/region.c [iso-8859-1] (original)
+++ trunk/reactos/win32ss/gdi/ntgdi/region.c [iso-8859-1] Thu Dec 18 08:11:36 2014
@@ -3853,39 +3853,6 @@
return ret;
}
-BOOL
-APIENTRY
-NtGdiInvertRgn(
- HDC hDC,
- HRGN hRgn)
-{
- PREGION RgnData;
- ULONG i;
- PRECTL rc;
-
- RgnData = RGNOBJAPI_Lock(hRgn, NULL);
- if (RgnData == NULL)
- {
- EngSetLastError(ERROR_INVALID_HANDLE);
- return FALSE;
- }
-
- rc = RgnData->Buffer;
- for (i = 0; i < RgnData->rdh.nCount; i++)
- {
-
- if (!NtGdiPatBlt(hDC, rc->left, rc->top, rc->right - rc->left,
rc->bottom - rc->top, DSTINVERT))
- {
- RGNOBJAPI_Unlock(RgnData);
- return FALSE;
- }
- rc++;
- }
-
- RGNOBJAPI_Unlock(RgnData);
- return TRUE;
-}
-
INT
APIENTRY
NtGdiOffsetRgn(