mirror of
https://github.com/reactos/reactos.git
synced 2025-02-25 01:39:30 +00:00
[WIN32K]
Move NtGdiInvertRgn to bitblt.c svn path=/trunk/; revision=65723
This commit is contained in:
parent
163de23b57
commit
87c12612dc
2 changed files with 32 additions and 33 deletions
|
@ -1010,6 +1010,38 @@ NtGdiPolyPatBlt(
|
||||||
return Ret;
|
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
|
COLORREF
|
||||||
APIENTRY
|
APIENTRY
|
||||||
|
|
|
@ -3853,39 +3853,6 @@ NtGdiGetRgnBox(
|
||||||
return ret;
|
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
|
INT
|
||||||
APIENTRY
|
APIENTRY
|
||||||
NtGdiOffsetRgn(
|
NtGdiOffsetRgn(
|
||||||
|
|
Loading…
Reference in a new issue