From 1182162dac3dd31e7ec47608b54200b9072062b8 Mon Sep 17 00:00:00 2001 From: Evan Stade Date: Mon, 16 Jul 2007 19:45:13 -0700 Subject: [PATCH] gdiplus: Added GdipPathIterRewind. --- dlls/gdiplus/gdiplus.spec | 2 +- dlls/gdiplus/pathiterator.c | 11 +++++++++++ include/gdiplusflat.h | 1 + 3 files changed, 13 insertions(+), 1 deletion(-) diff --git a/dlls/gdiplus/gdiplus.spec b/dlls/gdiplus/gdiplus.spec index 1238e10e21c..aea3a721e97 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 1bd119106e5..a9e1d3fe4d0 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 c9a3f50f835..fa569523e6f 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 }