mirror of
https://github.com/reactos/reactos.git
synced 2024-07-31 16:48:14 +00:00
implement NtGdiPathToRegion
svn path=/trunk/; revision=24042
This commit is contained in:
parent
344fd08452
commit
6a37552f9e
|
@ -252,8 +252,31 @@ HRGN
|
||||||
STDCALL
|
STDCALL
|
||||||
NtGdiPathToRegion(HDC hDC)
|
NtGdiPathToRegion(HDC hDC)
|
||||||
{
|
{
|
||||||
UNIMPLEMENTED;
|
GdiPath *pPath;
|
||||||
return 0;
|
HRGN hrgnRval = 0;
|
||||||
|
DC *pDc;
|
||||||
|
|
||||||
|
DPRINT("Enter %s\n", __FUNCTION__);
|
||||||
|
|
||||||
|
pDc = DC_LockDc(hDC);
|
||||||
|
if(!pDc) return NULL;
|
||||||
|
|
||||||
|
pPath = &pDc->w.path;
|
||||||
|
|
||||||
|
if(pPath->state!=PATH_Closed)
|
||||||
|
{
|
||||||
|
//FIXME: check that setlasterror is being called correctly
|
||||||
|
SetLastWin32Error(ERROR_CAN_NOT_COMPLETE);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
/* FIXME: Should we empty the path even if conversion failed? */
|
||||||
|
if(PATH_PathToRegion(pPath, pDc->w.polyFillMode, &hrgnRval))
|
||||||
|
PATH_EmptyPath(pPath);
|
||||||
|
}
|
||||||
|
|
||||||
|
DC_UnlockDc(pDc);
|
||||||
|
return hrgnRval;
|
||||||
}
|
}
|
||||||
|
|
||||||
BOOL
|
BOOL
|
||||||
|
|
Loading…
Reference in a new issue