Author: jimtabor
Date: Tue Jun 10 00:48:18 2008
New Revision: 33918
URL:
http://svn.reactos.org/svn/reactos?rev=33918&view=rev
Log:
Fix build, add float to long union for dword transfer.
Modified:
trunk/reactos/dll/win32/gdi32/objects/arc.c
trunk/reactos/subsystems/win32/win32k/objects/arc.c
Modified: trunk/reactos/dll/win32/gdi32/objects/arc.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/gdi32/objects/ar…
==============================================================================
--- trunk/reactos/dll/win32/gdi32/objects/arc.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/gdi32/objects/arc.c [iso-8859-1] Tue Jun 10 00:48:18 2008
@@ -64,6 +64,11 @@
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 @@
}
}
#endif
- return NtGdiAngleArc(hDC, X, Y, Radius, (DWORD)StartAngle, (DWORD)SweepAngle);
+ return NtGdiAngleArc(hDC, X, Y, Radius, (DWORD)worker.l, (DWORD)worker1.l);
}
BOOL
Modified: trunk/reactos/subsystems/win32/win32k/objects/arc.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/ob…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/objects/arc.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/objects/arc.c [iso-8859-1] Tue Jun 10 00:48:18
2008
@@ -469,7 +469,7 @@
BOOL
APIENTRY
NtGdiAngleArc(
- IN HDC hdc,
+ IN HDC hDC,
IN INT x,
IN INT y,
IN DWORD dwRadius,
@@ -477,7 +477,8 @@
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 @@
/* Yes, Windows really returns TRUE in this case */
return TRUE;
}
-
+ worker.l = dwStartAngle;
+ worker1.l = dwSweepAngle;
DC_UnlockDc( dc );
return Ret;
-
}
BOOL