Author: jimtabor
Date: Tue Jun 10 00:25:37 2008
New Revision: 33917
URL:
http://svn.reactos.org/svn/reactos?rev=33917&view=rev
Log:
Move NtGdiAngleArc to arc.c.
Modified:
trunk/reactos/subsystems/win32/win32k/objects/arc.c
trunk/reactos/subsystems/win32/win32k/objects/line.c
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:25:37
2008
@@ -466,6 +466,38 @@
rc1.left, rc1.top, rc1.right, rc1.bottom, arctype);
}
+BOOL
+APIENTRY
+NtGdiAngleArc(
+ IN HDC hdc,
+ IN INT x,
+ IN INT y,
+ IN DWORD dwRadius,
+ IN DWORD dwStartAngle,
+ IN DWORD dwSweepAngle)
+{
+ DC *dc;
+ BOOL Ret = FASLE;
+
+ dc = DC_LockDc (hDC);
+ if(!dc)
+ {
+ SetLastWin32Error(ERROR_INVALID_HANDLE);
+ return FALSE;
+ }
+ if (dc->DC_Type == DC_TYPE_INFO)
+ {
+ DC_UnlockDc(dc);
+ /* Yes, Windows really returns TRUE in this case */
+ return TRUE;
+ }
+
+
+ DC_UnlockDc( dc );
+ return Ret;
+
+}
+
BOOL
STDCALL
NtGdiArcInternal(
Modified: trunk/reactos/subsystems/win32/win32k/objects/line.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/ob…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/objects/line.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/objects/line.c [iso-8859-1] Tue Jun 10 00:25:37
2008
@@ -376,21 +376,6 @@
/******************************************************************************/
BOOL
-APIENTRY
-NtGdiAngleArc(
- IN HDC hdc,
- IN INT x,
- IN INT y,
- IN DWORD dwRadius,
- IN DWORD dwStartAngle,
- IN DWORD dwSweepAngle)
-{
- UNIMPLEMENTED;
- return FALSE;
-}
-
-
-BOOL
STDCALL
NtGdiLineTo(HDC hDC,
int XEnd,