Author: tkreuzer
Date: Wed Aug 1 16:34:38 2007
New Revision: 28069
URL:
http://svn.reactos.org/svn/reactos?rev=28069&view=rev
Log:
implement Arc, ArcTo, Chord, calling NtGdiArcInternal
Added:
trunk/reactos/dll/win32/gdi32/objects/arc.c
Modified:
trunk/reactos/dll/win32/gdi32/gdi32.def
trunk/reactos/dll/win32/gdi32/gdi32.rbuild
trunk/reactos/dll/win32/gdi32/misc/stubs.c
Modified: trunk/reactos/dll/win32/gdi32/gdi32.def
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/gdi32/gdi32.def?…
==============================================================================
--- trunk/reactos/dll/win32/gdi32/gdi32.def (original)
+++ trunk/reactos/dll/win32/gdi32/gdi32.def Wed Aug 1 16:34:38 2007
@@ -19,8 +19,8 @@
AngleArc@24
AnimatePalette@16=NtGdiAnimatePalette@16
AnyLinkedFonts@0
-Arc@36=NtGdiArc@36
-ArcTo@36=NtGdiArcTo@36
+Arc@36
+ArcTo@36
BeginPath@4
BRUSHOBJ_hGetColorTransform@4
BRUSHOBJ_pvAllocRbrush@8
Modified: trunk/reactos/dll/win32/gdi32/gdi32.rbuild
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/gdi32/gdi32.rbui…
==============================================================================
--- trunk/reactos/dll/win32/gdi32/gdi32.rbuild (original)
+++ trunk/reactos/dll/win32/gdi32/gdi32.rbuild Wed Aug 1 16:34:38 2007
@@ -27,6 +27,7 @@
<file>wingl.c</file>
</directory>
<directory name="objects">
+ <file>arc.c</file>
<file>bitmap.c</file>
<file>brush.c</file>
<file>dc.c</file>
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 (original)
+++ trunk/reactos/dll/win32/gdi32/misc/stubs.c Wed Aug 1 16:34:38 2007
@@ -27,29 +27,6 @@
STDCALL
CancelDC(
HDC a0
- )
-{
- UNIMPLEMENTED;
- SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
- return FALSE;
-}
-
-
-/*
- * @unimplemented
- */
-BOOL
-STDCALL
-Chord(
- HDC a0,
- int a1,
- int a2,
- int a3,
- int a4,
- int a5,
- int a6,
- int a7,
- int a8
)
{
UNIMPLEMENTED;
Added: 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 (added)
+++ trunk/reactos/dll/win32/gdi32/objects/arc.c Wed Aug 1 16:34:38 2007
@@ -1,0 +1,79 @@
+#include "precomp.h"
+
+BOOL
+WINAPI
+Arc(
+ HDC hDC,
+ int nLeftRect,
+ int nTopRect,
+ int nRightRect,
+ int nBottomRect,
+ int nXStartArc,
+ int nYStartArc,
+ int nXEndArc,
+ int nYEndArc
+)
+{
+ return NtGdiArcInternal(GdiTypeArc,
+ hDC,
+ nLeftRect,
+ nTopRect,
+ nRightRect,
+ nBottomRect,
+ nXStartArc,
+ nYStartArc,
+ nXEndArc,
+ nYEndArc);
+}
+
+BOOL
+WINAPI
+ArcTo(
+ HDC hDC,
+ int nLeftRect,
+ int nTopRect,
+ int nRightRect,
+ int nBottomRect,
+ int nXRadial1,
+ int nYRadial1,
+ int nXRadial2,
+ int nYRadial2)
+{
+ return NtGdiArcInternal(GdiTypeArcTo,
+ hDC,
+ nLeftRect,
+ nTopRect,
+ nRightRect,
+ nBottomRect,
+ nXRadial1,
+ nYRadial1,
+ nXRadial2,
+ nYRadial2);
+}
+
+BOOL
+WINAPI
+Chord(
+ HDC hDC,
+ int nLeftRect,
+ int nTopRect,
+ int nRightRect,
+ int nBottomRect,
+ int nXRadial1,
+ int nYRadial1,
+ int nXRadial2,
+ int nYRadial2)
+{
+ return NtGdiArcInternal(GdiTypeChord,
+ hDC,
+ nLeftRect,
+ nTopRect,
+ nRightRect,
+ nBottomRect,
+ nXRadial1,
+ nYRadial1,
+ nXRadial2,
+ nYRadial2);
+}
+
+