mirror of
https://github.com/reactos/reactos.git
synced 2024-07-08 13:45:06 +00:00
[gdi32]
- Move more region code from stubs into the appropriate file. - Enable and fix more user code. svn path=/trunk/; revision=44747
This commit is contained in:
parent
3180f15b3d
commit
a73299ffde
|
@ -1704,25 +1704,6 @@ GetFontData(HDC hdc,
|
|||
return NtGdiGetFontData(hdc, dwTable, dwOffset, lpvBuffer, cbData);
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* @implemented
|
||||
*
|
||||
*/
|
||||
DWORD
|
||||
WINAPI
|
||||
GetRegionData(HRGN hrgn,
|
||||
DWORD nCount,
|
||||
LPRGNDATA lpRgnData)
|
||||
{
|
||||
if (!lpRgnData)
|
||||
{
|
||||
nCount = 0;
|
||||
}
|
||||
|
||||
return NtGdiGetRegionData(hrgn,nCount,lpRgnData);
|
||||
}
|
||||
|
||||
INT
|
||||
WINAPI
|
||||
NamedEscape(HDC hdc,
|
||||
|
|
|
@ -190,7 +190,7 @@ CreateEllipticRgnIndirect(
|
|||
*/
|
||||
HRGN
|
||||
WINAPI
|
||||
CreateRectRgn(int x1, int y1, int x2,int y2)
|
||||
CreateRectRgn(int x1, int y1, int x2, int y2)
|
||||
{
|
||||
/* FIXME Some part need be done in user mode */
|
||||
return NtGdiCreateRectRgn(x1,y1,x2,y2);
|
||||
|
@ -285,6 +285,24 @@ GetMetaRgn(HDC hdc,
|
|||
return NtGdiGetRandomRgn(hdc, hrgn, METARGN);
|
||||
}
|
||||
|
||||
/*
|
||||
* @implemented
|
||||
*
|
||||
*/
|
||||
DWORD
|
||||
WINAPI
|
||||
GetRegionData(HRGN hrgn,
|
||||
DWORD nCount,
|
||||
LPRGNDATA lpRgnData)
|
||||
{
|
||||
if (!lpRgnData)
|
||||
{
|
||||
nCount = 0;
|
||||
}
|
||||
|
||||
return NtGdiGetRegionData(hrgn,nCount,lpRgnData);
|
||||
}
|
||||
|
||||
/*
|
||||
* @implemented
|
||||
*
|
||||
|
@ -294,10 +312,11 @@ WINAPI
|
|||
GetRgnBox(HRGN hrgn,
|
||||
LPRECT prcOut)
|
||||
{
|
||||
#if 0
|
||||
PRGN_ATTR Rgn_Attr;
|
||||
if (!GdiGetHandleUserData((HGDIOBJ) hRgn, GDI_OBJECT_TYPE_REGION, (PVOID) &Rgn_Attr))
|
||||
|
||||
if (!GdiGetHandleUserData((HGDIOBJ) hrgn, GDI_OBJECT_TYPE_REGION, (PVOID) &Rgn_Attr))
|
||||
return NtGdiGetRgnBox(hrgn, prcOut);
|
||||
|
||||
if (Rgn_Attr->Flags == NULLREGION)
|
||||
{
|
||||
prcOut->left = 0;
|
||||
|
@ -307,12 +326,12 @@ GetRgnBox(HRGN hrgn,
|
|||
}
|
||||
else
|
||||
{
|
||||
if (Rgn_Attr->Flags != SIMPLEREGION) return NtGdiGetRgnBox(hrgn, prcOut);
|
||||
*prcOut = Rgn_Attr->Rect;
|
||||
if (Rgn_Attr->Flags != SIMPLEREGION)
|
||||
return NtGdiGetRgnBox(hrgn, prcOut);
|
||||
/* WARNING! prcOut is never checked newbies! */
|
||||
RtlCopyMemory( prcOut, &Rgn_Attr->Rect, sizeof(RECT));
|
||||
}
|
||||
return Rgn_Attr->Flags;
|
||||
#endif
|
||||
return NtGdiGetRgnBox(hrgn, prcOut);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in a new issue