[9/9] gdiplus: added GdipSetPathGradientWrapMode

Evan Stade estade at gmail.com
Wed Aug 1 19:56:10 CDT 2007


Hi,

 dlls/gdiplus/brush.c           |   12 ++++++++++++
 dlls/gdiplus/gdiplus.spec      |    2 +-
 dlls/gdiplus/gdiplus_private.h |    1 +
 include/gdiplusflat.h          |    1 +
 include/gdiplusgpstubs.h       |    1 +
 5 files changed, 16 insertions(+), 1 deletions(-)

-- 
Evan Stade
-------------- next part --------------
diff --git a/dlls/gdiplus/brush.c b/dlls/gdiplus/brush.c
index 912bb83..dbe221c 100644
--- a/dlls/gdiplus/brush.c
+++ b/dlls/gdiplus/brush.c
@@ -67,6 +67,7 @@ GpStatus WINGDIPAPI GdipCreatePathGradie
     (*grad)->brush.gdibrush = CreateSolidBrush(col);
     (*grad)->brush.bt = BrushTypeSolidColor;
     (*grad)->centercolor = 0xffffffff;
+    (*grad)->wrap = WrapModeClamp;
 
     return Ok;
 }
@@ -135,6 +136,17 @@ GpStatus WINGDIPAPI GdipSetPathGradientC
     return Ok;
 }
 
+GpStatus WINGDIPAPI GdipSetPathGradientWrapMode(GpPathGradient *grad,
+    GpWrapMode wrap)
+{
+    if(!grad)
+        return InvalidParameter;
+
+    grad->wrap = wrap;
+
+    return Ok;
+}
+
 GpStatus WINGDIPAPI GdipSetSolidFillColor(GpSolidFill *sf, ARGB argb)
 {
     if(!sf)
diff --git a/dlls/gdiplus/gdiplus.spec b/dlls/gdiplus/gdiplus.spec
index abd7e24..6b79a71 100644
--- a/dlls/gdiplus/gdiplus.spec
+++ b/dlls/gdiplus/gdiplus.spec
@@ -560,7 +560,7 @@
 @ stub GdipSetPathGradientSigmaBlend
 @ stub GdipSetPathGradientSurroundColorsWithCount
 @ stub GdipSetPathGradientTransform
-@ stub GdipSetPathGradientWrapMode
+@ stdcall GdipSetPathGradientWrapMode(ptr long)
 @ stub GdipSetPathMarker
 @ stdcall GdipSetPenBrushFill(ptr ptr)
 @ stdcall GdipSetPenColor(ptr long)
diff --git a/dlls/gdiplus/gdiplus_private.h b/dlls/gdiplus/gdiplus_private.h
index 1a868cf..3ce92a1 100644
--- a/dlls/gdiplus/gdiplus_private.h
+++ b/dlls/gdiplus/gdiplus_private.h
@@ -95,6 +95,7 @@ struct GpSolidFill{
 struct GpPathGradient{
     GpBrush brush;
     ARGB centercolor;
+    GpWrapMode wrap;
 };
 
 struct GpPath{
diff --git a/include/gdiplusflat.h b/include/gdiplusflat.h
index 5e2b27a..83aea93 100644
--- a/include/gdiplusflat.h
+++ b/include/gdiplusflat.h
@@ -95,6 +95,7 @@ GpStatus WINGDIPAPI GdipGetBrushType(GpB
 GpStatus WINGDIPAPI GdipDeleteBrush(GpBrush*);
 GpStatus WINGDIPAPI GdipGetSolidFillColor(GpSolidFill*,ARGB*);
 GpStatus WINGDIPAPI GdipSetPathGradientCenterColor(GpPathGradient*,ARGB);
+GpStatus WINGDIPAPI GdipSetPathGradientWrapMode(GpPathGradient*,GpWrapMode);
 GpStatus WINGDIPAPI GdipSetSolidFillColor(GpSolidFill*,ARGB);
 
 GpStatus WINGDIPAPI GdipAddPathArc(GpPath*,REAL,REAL,REAL,REAL,REAL,REAL);
diff --git a/include/gdiplusgpstubs.h b/include/gdiplusgpstubs.h
index 4d85388..51c2168 100644
--- a/include/gdiplusgpstubs.h
+++ b/include/gdiplusgpstubs.h
@@ -66,5 +66,6 @@ typedef DashCap GpDashCap;
 typedef DashStyle GpDashStyle;
 typedef MatrixOrder GpMatrixOrder;
 typedef Point GpPoint;
+typedef WrapMode GpWrapMode;
 
 #endif
-- 
1.4.1


More information about the wine-patches mailing list