Evan Stade : gdiplus: Added GdipGetPointCount.

Alexandre Julliard julliard at wine.codeweavers.com
Mon Jul 9 10:25:01 CDT 2007


Module: wine
Branch: master
Commit: 8a114adefe34e2ded326094a7087c13547648cea
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=8a114adefe34e2ded326094a7087c13547648cea

Author: Evan Stade <estade at gmail.com>
Date:   Fri Jul  6 16:14:34 2007 -0700

gdiplus: Added GdipGetPointCount.

---

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

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(GpPath *path)
 
     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(GpPath*);
 GpStatus WINGDIPAPI GdipClosePathFigures(GpPath*);
 GpStatus WINGDIPAPI GdipCreatePath(GpFillMode,GpPath**);
 GpStatus WINGDIPAPI GdipDeletePath(GpPath*);
+GpStatus WINGDIPAPI GdipGetPointCount(GpPath*,INT*);
 
 #ifdef __cplusplus
 }




More information about the wine-cvs mailing list