[3/3] gdiplus: GdipSetLineColors

Nikolay Sivov bunglehead at gmail.com
Thu Apr 24 13:43:41 CDT 2008


Changelog:
    - implemented GdipSetLineColors (stub existed)
    
---
 dlls/gdiplus/brush.c  |    9 +++++----
 include/gdiplusflat.h |    1 +
 2 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/dlls/gdiplus/brush.c b/dlls/gdiplus/brush.c
index a01b938..405b50d 100644
--- a/dlls/gdiplus/brush.c
+++ b/dlls/gdiplus/brush.c
@@ -675,12 +675,13 @@ GpStatus WINGDIPAPI GdipSetTextureTransform(GpTexture *texture,
 GpStatus WINGDIPAPI GdipSetLineColors(GpLineGradient *brush, ARGB color1,
     ARGB color2)
 {
-    static int calls;
+    if(!brush)
+        return InvalidParameter;
 
-    if(!(calls++))
-        FIXME("not implemented\n");
+    brush->startcolor = color1;
+    brush->endcolor   = color2;
 
-    return NotImplemented;
+    return Ok;
 }
 
 GpStatus WINGDIPAPI GdipGetLineColors(GpLineGradient *brush, ARGB *colors)
diff --git a/include/gdiplusflat.h b/include/gdiplusflat.h
index db44ab2..e2e0017 100644
--- a/include/gdiplusflat.h
+++ b/include/gdiplusflat.h
@@ -173,6 +173,7 @@ GpStatus WINGDIPAPI GdipSetLineBlend(GpLineGradient*,GDIPCONST REAL*,
 GpStatus WINGDIPAPI GdipSetLineGammaCorrection(GpLineGradient*,BOOL);
 GpStatus WINGDIPAPI GdipSetLineSigmaBlend(GpLineGradient*,REAL,REAL);
 GpStatus WINGDIPAPI GdipSetLineWrapMode(GpLineGradient*,GpWrapMode);
+GpStatus WINGDIPAPI GdipSetLineColors(GpLineGradient*,ARGB,ARGB);
 GpStatus WINGDIPAPI GdipSetPathGradientCenterColor(GpPathGradient*,ARGB);
 GpStatus WINGDIPAPI GdipSetPathGradientCenterPoint(GpPathGradient*,GpPointF*);
 GpStatus WINGDIPAPI GdipSetPathGradientFocusScales(GpPathGradient*,REAL,REAL);
-- 
1.4.4.4






More information about the wine-patches mailing list