mirror of
https://github.com/reactos/reactos.git
synced 2024-09-30 22:47:28 +00:00
Fix build, add float to long union for dword transfer.
svn path=/trunk/; revision=33918
This commit is contained in:
parent
f79680eb17
commit
baa980036b
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue