Move AngleArc out of stubs.

svn path=/trunk/; revision=33916
This commit is contained in:
James Tabor 2008-06-10 05:14:35 +00:00
parent 2edcc21ee5
commit 4feb37f50f
2 changed files with 39 additions and 20 deletions

View file

@ -464,26 +464,6 @@ GdiComment(
}
/*
* @unimplemented
*/
BOOL
STDCALL
AngleArc(
HDC hdc,
int a1,
int a2,
DWORD a3,
FLOAT a4,
FLOAT a5
)
{
UNIMPLEMENTED;
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
return FALSE;
}
/*
* @unimplemented
*/

View file

@ -51,6 +51,45 @@ Arc(
nYEndArc);
}
/*
* @implemented
*/
BOOL
STDCALL
AngleArc(HDC hDC,
int X,
int Y,
DWORD Radius,
FLOAT StartAngle,
FLOAT SweepAngle)
{
#if 0
// Handle something other than a normal dc object.
if (GDI_HANDLE_GET_TYPE(hDC) != GDI_OBJECT_TYPE_DC)
{
if (GDI_HANDLE_GET_TYPE(hDC) == GDI_OBJECT_TYPE_METADC)
return FALSE; //No meta support for AngleArc
else
{
PLDC pLDC = GdiGetLDC(hDC);
if ( !pLDC )
{
SetLastError(ERROR_INVALID_HANDLE);
return FALSE;
}
if (pLDC->iType == LDC_EMFLDC)
{
BOOL Ret = EMFDRV_AngleArc( hDC, X, Y, Radius, StartAngle, SweepAngle);
return Ret;
}
return FALSE;
}
}
#endif
return NtGdiAngleArc(hDC, X, Y, Radius, (DWORD)StartAngle, (DWORD)SweepAngle);
}
BOOL
WINAPI
ArcTo(