mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 22:02:58 +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
2 changed files with 11 additions and 5 deletions
|
@ -64,6 +64,11 @@ AngleArc(HDC hDC,
|
||||||
FLOAT StartAngle,
|
FLOAT StartAngle,
|
||||||
FLOAT SweepAngle)
|
FLOAT SweepAngle)
|
||||||
{
|
{
|
||||||
|
gxf_long worker, worker1;
|
||||||
|
|
||||||
|
worker.f = StartAngle;
|
||||||
|
worker1.f = SweepAngle;
|
||||||
|
|
||||||
#if 0
|
#if 0
|
||||||
// Handle something other than a normal dc object.
|
// 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_DC)
|
||||||
|
@ -87,7 +92,7 @@ AngleArc(HDC hDC,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
return NtGdiAngleArc(hDC, X, Y, Radius, (DWORD)StartAngle, (DWORD)SweepAngle);
|
return NtGdiAngleArc(hDC, X, Y, Radius, (DWORD)worker.l, (DWORD)worker1.l);
|
||||||
}
|
}
|
||||||
|
|
||||||
BOOL
|
BOOL
|
||||||
|
|
|
@ -469,7 +469,7 @@ IntGdiArcInternal(
|
||||||
BOOL
|
BOOL
|
||||||
APIENTRY
|
APIENTRY
|
||||||
NtGdiAngleArc(
|
NtGdiAngleArc(
|
||||||
IN HDC hdc,
|
IN HDC hDC,
|
||||||
IN INT x,
|
IN INT x,
|
||||||
IN INT y,
|
IN INT y,
|
||||||
IN DWORD dwRadius,
|
IN DWORD dwRadius,
|
||||||
|
@ -477,7 +477,8 @@ NtGdiAngleArc(
|
||||||
IN DWORD dwSweepAngle)
|
IN DWORD dwSweepAngle)
|
||||||
{
|
{
|
||||||
DC *dc;
|
DC *dc;
|
||||||
BOOL Ret = FASLE;
|
BOOL Ret = FALSE;
|
||||||
|
gxf_long worker, worker1;
|
||||||
|
|
||||||
dc = DC_LockDc (hDC);
|
dc = DC_LockDc (hDC);
|
||||||
if(!dc)
|
if(!dc)
|
||||||
|
@ -491,11 +492,11 @@ NtGdiAngleArc(
|
||||||
/* Yes, Windows really returns TRUE in this case */
|
/* Yes, Windows really returns TRUE in this case */
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
worker.l = dwStartAngle;
|
||||||
|
worker1.l = dwSweepAngle;
|
||||||
|
|
||||||
DC_UnlockDc( dc );
|
DC_UnlockDc( dc );
|
||||||
return Ret;
|
return Ret;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
BOOL
|
BOOL
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue