[ros-diffs] [jimtabor] 33916: Move AngleArc out of stubs.

jimtabor at svn.reactos.org jimtabor at svn.reactos.org
Tue Jun 10 07:14:35 CEST 2008


Author: jimtabor
Date: Tue Jun 10 00:14:35 2008
New Revision: 33916

URL: http://svn.reactos.org/svn/reactos?rev=33916&view=rev
Log:
Move AngleArc out of stubs.

Modified:
    trunk/reactos/dll/win32/gdi32/misc/stubs.c
    trunk/reactos/dll/win32/gdi32/objects/arc.c

Modified: trunk/reactos/dll/win32/gdi32/misc/stubs.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/gdi32/misc/stubs.c?rev=33916&r1=33915&r2=33916&view=diff
==============================================================================
--- trunk/reactos/dll/win32/gdi32/misc/stubs.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/gdi32/misc/stubs.c [iso-8859-1] Tue Jun 10 00:14:35 2008
@@ -461,26 +461,6 @@
   }
 #endif
   return FALSE;
-}
-
-
-/*
- * @unimplemented
- */
-BOOL
-STDCALL
-AngleArc(
-	HDC	hdc,
-	int	a1,
-	int	a2,
-	DWORD	a3,
-	FLOAT	a4,
-	FLOAT	a5
-	)
-{
-	UNIMPLEMENTED;
-	SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
-	return FALSE;
 }
 
 

Modified: trunk/reactos/dll/win32/gdi32/objects/arc.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/gdi32/objects/arc.c?rev=33916&r1=33915&r2=33916&view=diff
==============================================================================
--- 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:14:35 2008
@@ -51,6 +51,45 @@
 	                        nYEndArc);
 }
 
+
+/*
+ * @implemented
+ */
+BOOL
+STDCALL
+AngleArc(HDC   hDC,
+         int   X,
+         int   Y,
+         DWORD Radius,
+         FLOAT StartAngle,
+         FLOAT SweepAngle)
+{
+#if 0
+// 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_METADC)
+      return FALSE; //No meta support for AngleArc
+    else
+    {
+      PLDC pLDC = GdiGetLDC(hDC);
+      if ( !pLDC )
+      {
+         SetLastError(ERROR_INVALID_HANDLE);
+         return FALSE;
+      }
+      if (pLDC->iType == LDC_EMFLDC)
+      {
+        BOOL Ret = EMFDRV_AngleArc( hDC, X, Y, Radius, StartAngle, SweepAngle);
+        return Ret;
+      }
+      return FALSE;
+    }
+ }
+#endif
+ return NtGdiAngleArc(hDC, X, Y, Radius, (DWORD)StartAngle, (DWORD)SweepAngle);
+}
+
 BOOL
 WINAPI
 ArcTo(



More information about the Ros-diffs mailing list