Module: wine Branch: master Commit: d174bcc8a6955d1ad5f9493e1de679b0be89beee URL: http://source.winehq.org/git/wine.git/?a=commit;h=d174bcc8a6955d1ad5f9493e1d...
Author: Evan Stade estade@gmail.com Date: Thu Jul 12 19:43:10 2007 -0700
gdiplus: Added GdipResetPath.
---
dlls/gdiplus/gdiplus.spec | 2 +- dlls/gdiplus/graphicspath.c | 12 ++++++++++++ include/gdiplusflat.h | 1 + 3 files changed, 14 insertions(+), 1 deletions(-)
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(GpPath *path) 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 GdipGetPathWorldBounds(GpPath*,GpRectF*,GDIPCONST GpMatrix*, 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**);