[7/7] gdiplus: added GdipGetPathTypes
Evan Stade
estade at gmail.com
Fri Jul 6 18:14:44 CDT 2007
Hi,
dlls/gdiplus/gdiplus.spec | 2 +-
dlls/gdiplus/graphicspath.c | 13 +++++++++++++
include/gdiplusflat.h | 1 +
3 files changed, 15 insertions(+), 1 deletions(-)
--
Evan Stade
-------------- next part --------------
diff --git a/dlls/gdiplus/gdiplus.spec b/dlls/gdiplus/gdiplus.spec
index d0ce8d9..2d001ff 100644
--- a/dlls/gdiplus/gdiplus.spec
+++ b/dlls/gdiplus/gdiplus.spec
@@ -329,7 +329,7 @@
@ stub GdipGetPathLastPoint
@ stdcall GdipGetPathPoints(ptr ptr long)
@ stub GdipGetPathPointsI
-@ stub GdipGetPathTypes
+@ stdcall GdipGetPathTypes(ptr ptr long)
@ stub GdipGetPathWorldBounds
@ stub GdipGetPathWorldBoundsI
@ stub GdipGetPenBrushFill
diff --git a/dlls/gdiplus/graphicspath.c b/dlls/gdiplus/graphicspath.c
index 6f52d47..40975b2 100644
--- a/dlls/gdiplus/graphicspath.c
+++ b/dlls/gdiplus/graphicspath.c
@@ -157,6 +157,19 @@ GpStatus WINGDIPAPI GdipGetPathPoints(Gp
return Ok;
}
+GpStatus WINGDIPAPI GdipGetPathTypes(GpPath *path, BYTE* types, INT count)
+{
+ if(!path)
+ return InvalidParameter;
+
+ if(count < path->pathdata.Count)
+ return InsufficientBuffer;
+
+ memcpy(types, path->pathdata.Types, path->pathdata.Count);
+
+ return Ok;
+}
+
GpStatus WINGDIPAPI GdipGetPointCount(GpPath *path, INT *count)
{
if(!path)
diff --git a/include/gdiplusflat.h b/include/gdiplusflat.h
index 0d38be9..d9f5f9a 100644
--- a/include/gdiplusflat.h
+++ b/include/gdiplusflat.h
@@ -54,6 +54,7 @@ GpStatus WINGDIPAPI GdipClosePathFigures
GpStatus WINGDIPAPI GdipCreatePath(GpFillMode,GpPath**);
GpStatus WINGDIPAPI GdipDeletePath(GpPath*);
GpStatus WINGDIPAPI GdipGetPathPoints(GpPath*,GpPointF*,INT);
+GpStatus WINGDIPAPI GdipGetPathTypes(GpPath*,BYTE*,INT);
GpStatus WINGDIPAPI GdipGetPointCount(GpPath*,INT*);
#ifdef __cplusplus
--
1.4.1
More information about the wine-patches
mailing list