[5/8] gdiplus: added GdipGetPathFillMode

Evan Stade estade at gmail.com
Thu Jul 12 21:43:07 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 ad0e44c..3413e3f 100644
--- a/dlls/gdiplus/gdiplus.spec
+++ b/dlls/gdiplus/gdiplus.spec
@@ -308,7 +308,7 @@
 @ stub GdipGetPageScale
 @ stub GdipGetPageUnit
 @ stub GdipGetPathData
-@ stub GdipGetPathFillMode
+@ stdcall GdipGetPathFillMode(ptr ptr)
 @ stub GdipGetPathGradientBlend
 @ stub GdipGetPathGradientBlendCount
 @ stub GdipGetPathGradientCenterColor
diff --git a/dlls/gdiplus/graphicspath.c b/dlls/gdiplus/graphicspath.c
index c9779d4..0f3b88b 100644
--- a/dlls/gdiplus/graphicspath.c
+++ b/dlls/gdiplus/graphicspath.c
@@ -179,6 +179,16 @@ GpStatus WINGDIPAPI GdipDeletePath(GpPat
     return Ok;
 }
 
+GpStatus WINGDIPAPI GdipGetPathFillMode(GpPath *path, GpFillMode *fillmode)
+{
+    if(!path || !fillmode)
+        return InvalidParameter;
+
+    *fillmode = path->fill;
+
+    return Ok;
+}
+
 GpStatus WINGDIPAPI GdipGetPathPoints(GpPath *path, GpPointF* points, INT count)
 {
     if(!path)
diff --git a/include/gdiplusflat.h b/include/gdiplusflat.h
index 5e275c9..4d36f53 100644
--- a/include/gdiplusflat.h
+++ b/include/gdiplusflat.h
@@ -56,6 +56,7 @@ GpStatus WINGDIPAPI GdipClosePathFigure(
 GpStatus WINGDIPAPI GdipClosePathFigures(GpPath*);
 GpStatus WINGDIPAPI GdipCreatePath(GpFillMode,GpPath**);
 GpStatus WINGDIPAPI GdipDeletePath(GpPath*);
+GpStatus WINGDIPAPI GdipGetPathFillMode(GpPath*,GpFillMode*);
 GpStatus WINGDIPAPI GdipGetPathPoints(GpPath*,GpPointF*,INT);
 GpStatus WINGDIPAPI GdipGetPathTypes(GpPath*,BYTE*,INT);
 GpStatus WINGDIPAPI GdipGetPathWorldBounds(GpPath*,GpRectF*,GDIPCONST GpMatrix*,
-- 
1.4.1


More information about the wine-patches mailing list