[5/7] gdiplus: added GdipGetPointCount

Evan Stade estade at gmail.com
Fri Jul 6 18:14:34 CDT 2007


Hi,

 dlls/gdiplus/gdiplus.spec   |    2 +-
 dlls/gdiplus/graphicspath.c |   10 ++++++++++
 include/gdiplusflat.h       |    1 +
 3 files changed, 12 insertions(+), 1 deletions(-)

-- 
Evan Stade
-------------- next part --------------
diff --git a/dlls/gdiplus/gdiplus.spec b/dlls/gdiplus/gdiplus.spec
index 1cabb0a..ef2a7db 100644
--- a/dlls/gdiplus/gdiplus.spec
+++ b/dlls/gdiplus/gdiplus.spec
@@ -353,7 +353,7 @@
 @ stub GdipGetPenUnit
 @ stub GdipGetPenWidth
 @ stub GdipGetPixelOffsetMode
-@ stub GdipGetPointCount
+@ stdcall GdipGetPointCount(ptr ptr)
 @ stub GdipGetPropertyCount
 @ stub GdipGetPropertyIdList
 @ stub GdipGetPropertyItem
diff --git a/dlls/gdiplus/graphicspath.c b/dlls/gdiplus/graphicspath.c
index 24bc7d9..bc64f39 100644
--- a/dlls/gdiplus/graphicspath.c
+++ b/dlls/gdiplus/graphicspath.c
@@ -143,3 +143,13 @@ GpStatus WINGDIPAPI GdipDeletePath(GpPat
 
     return Ok;
 }
+
+GpStatus WINGDIPAPI GdipGetPointCount(GpPath *path, INT *count)
+{
+    if(!path)
+        return InvalidParameter;
+
+    *count = path->pathdata.Count;
+
+    return Ok;
+}
diff --git a/include/gdiplusflat.h b/include/gdiplusflat.h
index 6d3da28..e92c803 100644
--- a/include/gdiplusflat.h
+++ b/include/gdiplusflat.h
@@ -53,6 +53,7 @@ GpStatus WINGDIPAPI GdipClosePathFigure(
 GpStatus WINGDIPAPI GdipClosePathFigures(GpPath*);
 GpStatus WINGDIPAPI GdipCreatePath(GpFillMode,GpPath**);
 GpStatus WINGDIPAPI GdipDeletePath(GpPath*);
+GpStatus WINGDIPAPI GdipGetPointCount(GpPath*,INT*);
 
 #ifdef __cplusplus
 }
-- 
1.4.1


More information about the wine-patches mailing list