From 59ef3c920d2eb0f43d28387b78cf73c31aed3bff Mon Sep 17 00:00:00 2001 From: Nikolay Sivov Date: Thu, 24 Apr 2008 22:43:41 +0400 Subject: [PATCH] gdiplus: Implemented GdipSetLineColors. --- 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 d2097ebee64..727d12d3450 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 c3693771382..366e8a529f3 100644 --- a/include/gdiplusflat.h +++ b/include/gdiplusflat.h @@ -175,6 +175,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);