gdiplus: Added GdipClosePathFigures.
This commit is contained in:
parent
8c12919744
commit
d0ba8711ff
|
@ -55,7 +55,7 @@
|
|||
@ stub GdipCloneRegion
|
||||
@ stub GdipCloneStringFormat
|
||||
@ stdcall GdipClosePathFigure(ptr)
|
||||
@ stub GdipClosePathFigures
|
||||
@ stdcall GdipClosePathFigures(ptr)
|
||||
@ stub GdipCombineRegionPath
|
||||
@ stub GdipCombineRegionRect
|
||||
@ stub GdipCombineRegionRectI
|
||||
|
|
|
@ -103,6 +103,23 @@ GpStatus WINGDIPAPI GdipClosePathFigure(GpPath* path)
|
|||
return Ok;
|
||||
}
|
||||
|
||||
GpStatus WINGDIPAPI GdipClosePathFigures(GpPath* path)
|
||||
{
|
||||
INT i;
|
||||
|
||||
if(!path)
|
||||
return InvalidParameter;
|
||||
|
||||
for(i = 1; i < path->pathdata.Count; i++){
|
||||
if(path->pathdata.Types[i] == PathPointTypeStart)
|
||||
path->pathdata.Types[i-1] |= PathPointTypeCloseSubpath;
|
||||
}
|
||||
|
||||
path->newfigure = TRUE;
|
||||
|
||||
return Ok;
|
||||
}
|
||||
|
||||
GpStatus WINGDIPAPI GdipCreatePath(GpFillMode fill, GpPath **path)
|
||||
{
|
||||
if(!path)
|
||||
|
|
|
@ -50,6 +50,7 @@ GpStatus WINGDIPAPI GdipDeleteBrush(GpBrush*);
|
|||
|
||||
GpStatus WINGDIPAPI GdipAddPathLine2(GpPath*,GDIPCONST GpPointF*,INT);
|
||||
GpStatus WINGDIPAPI GdipClosePathFigure(GpPath*);
|
||||
GpStatus WINGDIPAPI GdipClosePathFigures(GpPath*);
|
||||
GpStatus WINGDIPAPI GdipCreatePath(GpFillMode,GpPath**);
|
||||
GpStatus WINGDIPAPI GdipDeletePath(GpPath*);
|
||||
|
||||
|
|
Loading…
Reference in New Issue