Evan Stade : gdiplus: Added GdipSetPathFillMode.

Alexandre Julliard julliard at wine.codeweavers.com
Mon Jul 16 08:23:40 CDT 2007


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

Author: Evan Stade <estade at gmail.com>
Date:   Fri Jul 13 17:51:01 2007 -0700

gdiplus: Added GdipSetPathFillMode.

---

 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 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 *path)
     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 GdipGetPathWorldBounds(GpPath*,GpRectF*,GDIPCONST GpMatrix*,
 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**);




More information about the wine-cvs mailing list