gdiplus: Added GdipResetPath.

This commit is contained in:
Evan Stade 2007-07-12 19:43:10 -07:00 committed by Alexandre Julliard
parent 64035b308e
commit d174bcc8a6
3 changed files with 14 additions and 1 deletions

View File

@ -458,7 +458,7 @@
@ stub GdipResetImageAttributes @ stub GdipResetImageAttributes
@ stub GdipResetLineTransform @ stub GdipResetLineTransform
@ stub GdipResetPageTransform @ stub GdipResetPageTransform
@ stub GdipResetPath @ stdcall GdipResetPath(ptr)
@ stub GdipResetPathGradientTransform @ stub GdipResetPathGradientTransform
@ stub GdipResetPenTransform @ stub GdipResetPenTransform
@ stub GdipResetTextureTransform @ stub GdipResetTextureTransform

View File

@ -320,6 +320,18 @@ GpStatus WINGDIPAPI GdipStartPathFigure(GpPath *path)
return Ok; 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) GpStatus WINGDIPAPI GdipTransformPath(GpPath *path, GpMatrix *matrix)
{ {
if(!path) if(!path)

View File

@ -63,6 +63,7 @@ GpStatus WINGDIPAPI GdipGetPathWorldBounds(GpPath*,GpRectF*,GDIPCONST GpMatrix*,
GDIPCONST GpPen*); GDIPCONST GpPen*);
GpStatus WINGDIPAPI GdipGetPointCount(GpPath*,INT*); GpStatus WINGDIPAPI GdipGetPointCount(GpPath*,INT*);
GpStatus WINGDIPAPI GdipStartPathFigure(GpPath*); GpStatus WINGDIPAPI GdipStartPathFigure(GpPath*);
GpStatus WINGDIPAPI GdipResetPath(GpPath*);
GpStatus WINGDIPAPI GdipTransformPath(GpPath*,GpMatrix*); GpStatus WINGDIPAPI GdipTransformPath(GpPath*,GpMatrix*);
GpStatus WINGDIPAPI GdipCreateMatrix2(REAL,REAL,REAL,REAL,REAL,REAL,GpMatrix**); GpStatus WINGDIPAPI GdipCreateMatrix2(REAL,REAL,REAL,REAL,REAL,REAL,GpMatrix**);