Evan Stade : gdiplus: Added GdipPathIterRewind.
Alexandre Julliard
julliard at wine.codeweavers.com
Tue Jul 17 07:36:51 CDT 2007
Module: wine
Branch: master
Commit: 1182162dac3dd31e7ec47608b54200b9072062b8
URL: http://source.winehq.org/git/wine.git/?a=commit;h=1182162dac3dd31e7ec47608b54200b9072062b8
Author: Evan Stade <estade at gmail.com>
Date: Mon Jul 16 19:45:13 2007 -0700
gdiplus: Added GdipPathIterRewind.
---
dlls/gdiplus/gdiplus.spec | 2 +-
dlls/gdiplus/pathiterator.c | 11 +++++++++++
include/gdiplusflat.h | 1 +
3 files changed, 13 insertions(+), 1 deletions(-)
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 GdipPathIterNextSubpath(GpPathIterator* iterator,
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(GpPathIterator*);
GpStatus WINGDIPAPI GdipPathIterCopyData(GpPathIterator*,INT*,GpPointF*,BYTE*,
INT,INT);
GpStatus WINGDIPAPI GdipPathIterNextSubpath(GpPathIterator*,INT*,INT*,INT*,BOOL*);
+GpStatus WINGDIPAPI GdipPathIterRewind(GpPathIterator*);
#ifdef __cplusplus
}
More information about the wine-cvs
mailing list