[6/7] gdiplus: 2 graphicspath functions
Evan Stade
estade at gmail.com
Thu Jun 21 18:15:31 CDT 2007
Hi,
Changelog:
*added GdipGetPointCount
*added GdipStartPathFigure
dlls/gdiplus/gdiplus.spec | 4 ++--
dlls/gdiplus/graphicspath.c | 20 ++++++++++++++++++++
include/gdiplusflat.h | 2 ++
3 files changed, 24 insertions(+), 2 deletions(-)
--
Evan Stade
-------------- next part --------------
diff --git a/dlls/gdiplus/gdiplus.spec b/dlls/gdiplus/gdiplus.spec
index 8cdb0b3..6641aaa 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
@@ -578,7 +578,7 @@
@ stub GdipSetTextureWrapMode
@ stub GdipSetWorldTransform
@ stub GdipShearMatrix
-@ stub GdipStartPathFigure
+@ stdcall GdipStartPathFigure(ptr)
@ stub GdipStringFormatGetGenericDefault
@ stub GdipStringFormatGetGenericTypographic
@ stub GdipTestControl
diff --git a/dlls/gdiplus/graphicspath.c b/dlls/gdiplus/graphicspath.c
index fc35902..58f85f7 100644
--- a/dlls/gdiplus/graphicspath.c
+++ b/dlls/gdiplus/graphicspath.c
@@ -175,3 +175,23 @@ GpStatus WINGDIPAPI GdipDeletePath(GpPat
return Ok;
}
+
+GpStatus WINGDIPAPI GdipGetPointCount(GpPath *path, INT *count)
+{
+ if(!path || !count)
+ return InvalidParameter;
+
+ *count = path->pathdata.Count;
+
+ return Ok;
+}
+
+GpStatus WINGDIPAPI GdipStartPathFigure(GpPath *path)
+{
+ if(!path)
+ return InvalidParameter;
+
+ path->newfigure = TRUE;
+
+ return Ok;
+}
diff --git a/include/gdiplusflat.h b/include/gdiplusflat.h
index 376af86..1d40b45 100644
--- a/include/gdiplusflat.h
+++ b/include/gdiplusflat.h
@@ -50,6 +50,8 @@ GpStatus WINGDIPAPI GdipDeleteBrush(GpBr
GpStatus WINGDIPAPI GdipAddPathArc(GpPath*,REAL,REAL,REAL,REAL,REAL,REAL);
GpStatus WINGDIPAPI GdipCreatePath(GpFillMode,GpPath**);
GpStatus WINGDIPAPI GdipDeletePath(GpPath*);
+GpStatus WINGDIPAPI GdipGetPointCount(GpPath*,INT*);
+GpStatus WINGDIPAPI GdipStartPathFigure(GpPath*);
#ifdef __cplusplus
}
--
1.4.1
More information about the wine-patches
mailing list