[ros-diffs] [tkreuzer] 28069: implement Arc, ArcTo, Chord, calling NtGdiArcInternal
tkreuzer at svn.reactos.org
tkreuzer at svn.reactos.org
Wed Aug 1 14:34:38 CEST 2007
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?rev=28069&r1=28068&r2=28069&view=diff
==============================================================================
--- 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 at 24
AnimatePalette at 16=NtGdiAnimatePalette at 16
AnyLinkedFonts at 0
-Arc at 36=NtGdiArc at 36
-ArcTo at 36=NtGdiArcTo at 36
+Arc at 36
+ArcTo at 36
BeginPath at 4
BRUSHOBJ_hGetColorTransform at 4
BRUSHOBJ_pvAllocRbrush at 8
Modified: trunk/reactos/dll/win32/gdi32/gdi32.rbuild
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/gdi32/gdi32.rbuild?rev=28069&r1=28068&r2=28069&view=diff
==============================================================================
--- 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.c?rev=28069&r1=28068&r2=28069&view=diff
==============================================================================
--- 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/arc.c?rev=28069&view=auto
==============================================================================
--- 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);
+}
+
+
More information about the Ros-diffs
mailing list