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…
==============================================================================
--- 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/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: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(