[1/10] gdiplus: added GdipSetPathFillMode

Evan Stade estade at gmail.com
Fri Jul 13 19:51:01 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 273a9ee..9d6457e 100644
--- a/dlls/gdiplus/gdiplus.spec
+++ b/dlls/gdiplus/gdiplus.spec
@@ -526,7 +526,7 @@
 @ stub GdipSetMetafileDownLevelRasterizationLimit
 @ stub GdipSetPageScale
 @ stub GdipSetPageUnit
-@ stub GdipSetPathFillMode
+@ stdcall GdipSetPathFillMode(ptr long)
 @ stub GdipSetPathGradientBlend
 @ stub GdipSetPathGradientCenterColor
 @ stub GdipSetPathGradientCenterPoint
diff --git a/dlls/gdiplus/graphicspath.c b/dlls/gdiplus/graphicspath.c
index 2fabd49..5b0e502 100644
--- a/dlls/gdiplus/graphicspath.c
+++ b/dlls/gdiplus/graphicspath.c
@@ -361,6 +361,16 @@ GpStatus WINGDIPAPI GdipResetPath(GpPath
     return Ok;
 }
 
+GpStatus WINGDIPAPI GdipSetPathFillMode(GpPath *path, GpFillMode fill)
+{
+    if(!path)
+        return InvalidParameter;
+
+    path->fill = fill;
+
+    return Ok;
+}
+
 GpStatus WINGDIPAPI GdipTransformPath(GpPath *path, GpMatrix *matrix)
 {
     if(!path)
diff --git a/include/gdiplusflat.h b/include/gdiplusflat.h
index 07f52e9..42c33de 100644
--- a/include/gdiplusflat.h
+++ b/include/gdiplusflat.h
@@ -65,6 +65,7 @@ GpStatus WINGDIPAPI GdipGetPathWorldBoun
 GpStatus WINGDIPAPI GdipGetPointCount(GpPath*,INT*);
 GpStatus WINGDIPAPI GdipStartPathFigure(GpPath*);
 GpStatus WINGDIPAPI GdipResetPath(GpPath*);
+GpStatus WINGDIPAPI GdipSetPathFillMode(GpPath*,GpFillMode);
 GpStatus WINGDIPAPI GdipTransformPath(GpPath*,GpMatrix*);
 
 GpStatus WINGDIPAPI GdipCreateMatrix2(REAL,REAL,REAL,REAL,REAL,REAL,GpMatrix**);
-- 
1.4.1


More information about the wine-patches mailing list