Evan Stade : gdiplus: Added GdipSetLineWrapMode.

Alexandre Julliard julliard at wine.codeweavers.com
Wed Aug 8 08:59:49 CDT 2007


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

Author: Evan Stade <estade at gmail.com>
Date:   Tue Aug  7 18:42:32 2007 -0700

gdiplus: Added GdipSetLineWrapMode.

---

 dlls/gdiplus/brush.c      |   13 ++++++++++++-
 dlls/gdiplus/gdiplus.spec |    2 +-
 include/gdiplusflat.h     |    1 +
 3 files changed, 14 insertions(+), 2 deletions(-)

diff --git a/dlls/gdiplus/brush.c b/dlls/gdiplus/brush.c
index 35e1659..5ad9b13 100644
--- a/dlls/gdiplus/brush.c
+++ b/dlls/gdiplus/brush.c
@@ -83,7 +83,7 @@ GpStatus WINGDIPAPI GdipCreateLineBrush(GDIPCONST GpPointF* startpoint,
 {
     COLORREF col = ARGB2COLORREF(startcolor);
 
-    if(!line || !startpoint || !endpoint)
+    if(!line || !startpoint || !endpoint || wrap == WrapModeClamp)
         return InvalidParameter;
 
     *line = GdipAlloc(sizeof(GpLineGradient));
@@ -316,6 +316,17 @@ GpStatus WINGDIPAPI GdipGetSolidFillColor(GpSolidFill *sf, ARGB *argb)
     return Ok;
 }
 
+GpStatus WINGDIPAPI GdipSetLineWrapMode(GpLineGradient *line,
+    GpWrapMode wrap)
+{
+    if(!line || wrap == WrapModeClamp)
+        return InvalidParameter;
+
+    line->wrap = wrap;
+
+    return Ok;
+}
+
 GpStatus WINGDIPAPI GdipSetPathGradientCenterColor(GpPathGradient *grad,
     ARGB argb)
 {
diff --git a/dlls/gdiplus/gdiplus.spec b/dlls/gdiplus/gdiplus.spec
index 6811926..44026f7 100644
--- a/dlls/gdiplus/gdiplus.spec
+++ b/dlls/gdiplus/gdiplus.spec
@@ -542,7 +542,7 @@
 @ stub GdipSetLinePresetBlend
 @ stub GdipSetLineSigmaBlend
 @ stub GdipSetLineTransform
-@ stub GdipSetLineWrapMode
+@ stdcall GdipSetLineWrapMode(ptr long)
 @ stdcall GdipSetMatrixElements(ptr long long long long long long)
 @ stub GdipSetMetafileDownLevelRasterizationLimit
 @ stdcall GdipSetPageScale(ptr long)
diff --git a/include/gdiplusflat.h b/include/gdiplusflat.h
index 963e8e4..713faac 100644
--- a/include/gdiplusflat.h
+++ b/include/gdiplusflat.h
@@ -106,6 +106,7 @@ GpStatus WINGDIPAPI GdipGetPathGradientPointCount(GpPathGradient*,INT*);
 GpStatus WINGDIPAPI GdipGetPathGradientSurroundColorsWithCount(GpPathGradient*,
     ARGB*,INT*);
 GpStatus WINGDIPAPI GdipGetSolidFillColor(GpSolidFill*,ARGB*);
+GpStatus WINGDIPAPI GdipSetLineWrapMode(GpLineGradient*,GpWrapMode);
 GpStatus WINGDIPAPI GdipSetPathGradientCenterColor(GpPathGradient*,ARGB);
 GpStatus WINGDIPAPI GdipSetPathGradientCenterPoint(GpPathGradient*,GpPointF*);
 GpStatus WINGDIPAPI GdipSetPathGradientFocusScales(GpPathGradient*,REAL,REAL);




More information about the wine-cvs mailing list