mirror of
https://github.com/reactos/reactos.git
synced 2024-07-11 15:15:27 +00:00
implement NtGdiPathToRegion
svn path=/trunk/; revision=24042
This commit is contained in:
parent
344fd08452
commit
6a37552f9e
|
@ -252,8 +252,31 @@ HRGN
|
|||
STDCALL
|
||||
NtGdiPathToRegion(HDC hDC)
|
||||
{
|
||||
UNIMPLEMENTED;
|
||||
return 0;
|
||||
GdiPath *pPath;
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue