Module: wine Branch: master Commit: b56689d22c41a64eb611a5488068e9b89601382a URL: http://source.winehq.org/git/wine.git/?a=commit;h=b56689d22c41a64eb611a54880...
Author: Evan Stade estade@gmail.com Date: Tue Aug 14 19:01:00 2007 -0700
gdiplus: Added GdipSetLineBlend stub.
---
dlls/gdiplus/brush.c | 14 ++++++++++++++ dlls/gdiplus/gdiplus.spec | 2 +- include/gdiplusflat.h | 2 ++ 3 files changed, 17 insertions(+), 1 deletions(-)
diff --git a/dlls/gdiplus/brush.c b/dlls/gdiplus/brush.c index e91538e..45de034 100644 --- a/dlls/gdiplus/brush.c +++ b/dlls/gdiplus/brush.c @@ -486,6 +486,20 @@ GpStatus WINGDIPAPI GdipGetSolidFillColor(GpSolidFill *sf, ARGB *argb) return Ok; }
+GpStatus WINGDIPAPI GdipSetLineBlend(GpLineGradient *brush, + GDIPCONST REAL *blend, GDIPCONST REAL* positions, INT count) +{ + static int calls; + + if(!brush || !blend || !positions || count <= 0) + return InvalidParameter; + + if(!(calls++)) + FIXME("not implemented\n"); + + return Ok; +} + GpStatus WINGDIPAPI GdipSetLineGammaCorrection(GpLineGradient *line, BOOL usegamma) { diff --git a/dlls/gdiplus/gdiplus.spec b/dlls/gdiplus/gdiplus.spec index b13fc8f..7380ef5 100644 --- a/dlls/gdiplus/gdiplus.spec +++ b/dlls/gdiplus/gdiplus.spec @@ -535,7 +535,7 @@ @ stdcall GdipSetImagePalette(ptr ptr) @ stub GdipSetInfinite @ stdcall GdipSetInterpolationMode(ptr long) -@ stub GdipSetLineBlend +@ stdcall GdipSetLineBlend(ptr ptr ptr long) @ stub GdipSetLineColors @ stdcall GdipSetLineGammaCorrection(ptr long) @ stub GdipSetLineLinearBlend diff --git a/include/gdiplusflat.h b/include/gdiplusflat.h index 84634e0..0b5ac3b 100644 --- a/include/gdiplusflat.h +++ b/include/gdiplusflat.h @@ -127,6 +127,8 @@ GpStatus WINGDIPAPI GdipGetPathGradientPointCount(GpPathGradient*,INT*); GpStatus WINGDIPAPI GdipGetPathGradientSurroundColorsWithCount(GpPathGradient*, ARGB*,INT*); GpStatus WINGDIPAPI GdipGetSolidFillColor(GpSolidFill*,ARGB*); +GpStatus WINGDIPAPI GdipSetLineBlend(GpLineGradient*,GDIPCONST REAL*, + GDIPCONST REAL*,INT); GpStatus WINGDIPAPI GdipSetLineGammaCorrection(GpLineGradient*,BOOL); GpStatus WINGDIPAPI GdipSetLineSigmaBlend(GpLineGradient*,REAL,REAL); GpStatus WINGDIPAPI GdipSetLineWrapMode(GpLineGradient*,GpWrapMode);