[6/8] gdiplus: added GdipResetPath
Evan Stade
estade at gmail.com
Thu Jul 12 21:43:10 CDT 2007
Hi,
dlls/gdiplus/gdiplus.spec | 2 +-
dlls/gdiplus/graphicspath.c | 12 ++++++++++++
include/gdiplusflat.h | 1 +
3 files changed, 14 insertions(+), 1 deletions(-)
--
Evan Stade
-------------- next part --------------
diff --git a/dlls/gdiplus/gdiplus.spec b/dlls/gdiplus/gdiplus.spec
index 3413e3f..1f23225 100644
--- a/dlls/gdiplus/gdiplus.spec
+++ b/dlls/gdiplus/gdiplus.spec
@@ -458,7 +458,7 @@
@ stub GdipResetImageAttributes
@ stub GdipResetLineTransform
@ stub GdipResetPageTransform
-@ stub GdipResetPath
+@ stdcall GdipResetPath(ptr)
@ stub GdipResetPathGradientTransform
@ stub GdipResetPenTransform
@ stub GdipResetTextureTransform
diff --git a/dlls/gdiplus/graphicspath.c b/dlls/gdiplus/graphicspath.c
index 0f3b88b..df6c6d6 100644
--- a/dlls/gdiplus/graphicspath.c
+++ b/dlls/gdiplus/graphicspath.c
@@ -320,6 +320,18 @@ GpStatus WINGDIPAPI GdipStartPathFigure(
return Ok;
}
+GpStatus WINGDIPAPI GdipResetPath(GpPath *path)
+{
+ if(!path)
+ return InvalidParameter;
+
+ path->pathdata.Count = 0;
+ path->newfigure = TRUE;
+ path->fill = FillModeAlternate;
+
+ return Ok;
+}
+
GpStatus WINGDIPAPI GdipTransformPath(GpPath *path, GpMatrix *matrix)
{
if(!path)
diff --git a/include/gdiplusflat.h b/include/gdiplusflat.h
index 4d36f53..787d01c 100644
--- a/include/gdiplusflat.h
+++ b/include/gdiplusflat.h
@@ -63,6 +63,7 @@ GpStatus WINGDIPAPI GdipGetPathWorldBoun
GDIPCONST GpPen*);
GpStatus WINGDIPAPI GdipGetPointCount(GpPath*,INT*);
GpStatus WINGDIPAPI GdipStartPathFigure(GpPath*);
+GpStatus WINGDIPAPI GdipResetPath(GpPath*);
GpStatus WINGDIPAPI GdipTransformPath(GpPath*,GpMatrix*);
GpStatus WINGDIPAPI GdipCreateMatrix2(REAL,REAL,REAL,REAL,REAL,REAL,GpMatrix**);
--
1.4.1
More information about the wine-patches
mailing list