[7/9] gdiplus: added GdipPathIterRewind
Evan Stade
estade at gmail.com
Mon Jul 16 21:45:13 CDT 2007
Hi,
dlls/gdiplus/gdiplus.spec | 2 +-
dlls/gdiplus/pathiterator.c | 11 +++++++++++
include/gdiplusflat.h | 1 +
3 files changed, 13 insertions(+), 1 deletions(-)
--
Evan Stade
-------------- next part --------------
diff --git a/dlls/gdiplus/gdiplus.spec b/dlls/gdiplus/gdiplus.spec
index 1238e10..aea3a72 100644
--- a/dlls/gdiplus/gdiplus.spec
+++ b/dlls/gdiplus/gdiplus.spec
@@ -442,7 +442,7 @@
@ stub GdipPathIterNextPathType
@ stdcall GdipPathIterNextSubpath(ptr ptr ptr ptr ptr)
@ stub GdipPathIterNextSubpathPath
-@ stub GdipPathIterRewind
+@ stdcall GdipPathIterRewind(ptr)
@ stub GdipPlayMetafileRecord
@ stub GdipPrivateAddFontFile
@ stub GdipPrivateAddMemoryFont
diff --git a/dlls/gdiplus/pathiterator.c b/dlls/gdiplus/pathiterator.c
index 1bd1191..a9e1d3f 100644
--- a/dlls/gdiplus/pathiterator.c
+++ b/dlls/gdiplus/pathiterator.c
@@ -117,3 +117,14 @@ GpStatus WINGDIPAPI GdipPathIterNextSubp
return Ok;
}
+GpStatus WINGDIPAPI GdipPathIterRewind(GpPathIterator *iterator)
+{
+ if(!iterator)
+ return InvalidParameter;
+
+ iterator->subpath_pos = 0;
+ iterator->marker_pos = 0;
+ iterator->pathtype_pos = 0;
+
+ return Ok;
+}
diff --git a/include/gdiplusflat.h b/include/gdiplusflat.h
index c9a3f50..fa56952 100644
--- a/include/gdiplusflat.h
+++ b/include/gdiplusflat.h
@@ -90,6 +90,7 @@ GpStatus WINGDIPAPI GdipDeletePathIter(G
GpStatus WINGDIPAPI GdipPathIterCopyData(GpPathIterator*,INT*,GpPointF*,BYTE*,
INT,INT);
GpStatus WINGDIPAPI GdipPathIterNextSubpath(GpPathIterator*,INT*,INT*,INT*,BOOL*);
+GpStatus WINGDIPAPI GdipPathIterRewind(GpPathIterator*);
#ifdef __cplusplus
}
--
1.4.1
More information about the wine-patches
mailing list