Fix build, add float to long union for dword transfer.

svn path=/trunk/; revision=33918
This commit is contained in:
James Tabor 2008-06-10 05:48:18 +00:00
parent f79680eb17
commit baa980036b
2 changed files with 11 additions and 5 deletions

View file

@ -64,6 +64,11 @@ AngleArc(HDC hDC,
FLOAT StartAngle,
FLOAT SweepAngle)
{
gxf_long worker, worker1;
worker.f = StartAngle;
worker1.f = SweepAngle;
#if 0
// Handle something other than a normal dc object.
if (GDI_HANDLE_GET_TYPE(hDC) != GDI_OBJECT_TYPE_DC)
@ -87,7 +92,7 @@ AngleArc(HDC hDC,
}
}
#endif
return NtGdiAngleArc(hDC, X, Y, Radius, (DWORD)StartAngle, (DWORD)SweepAngle);
return NtGdiAngleArc(hDC, X, Y, Radius, (DWORD)worker.l, (DWORD)worker1.l);
}
BOOL

View file

@ -469,7 +469,7 @@ IntGdiArcInternal(
BOOL
APIENTRY
NtGdiAngleArc(
IN HDC hdc,
IN HDC hDC,
IN INT x,
IN INT y,
IN DWORD dwRadius,
@ -477,7 +477,8 @@ NtGdiAngleArc(
IN DWORD dwSweepAngle)
{
DC *dc;
BOOL Ret = FASLE;
BOOL Ret = FALSE;
gxf_long worker, worker1;
dc = DC_LockDc (hDC);
if(!dc)
@ -491,11 +492,11 @@ NtGdiAngleArc(
/* Yes, Windows really returns TRUE in this case */
return TRUE;
}
worker.l = dwStartAngle;
worker1.l = dwSweepAngle;
DC_UnlockDc( dc );
return Ret;
}
BOOL