From a85bb87cc3e12af45e288904402906503fee190e Mon Sep 17 00:00:00 2001 From: Vincent Povirk Date: Sat, 31 Mar 2012 11:20:11 -0500 Subject: [PATCH] gdiplus: Implement GdipGetPathGradientCenterColor. --- dlls/gdiplus/brush.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/dlls/gdiplus/brush.c b/dlls/gdiplus/brush.c index b7dd1d5bafa..9eb9dff4416 100644 --- a/dlls/gdiplus/brush.c +++ b/dlls/gdiplus/brush.c @@ -994,14 +994,14 @@ GpStatus WINGDIPAPI GdipGetPathGradientCenterPointI(GpPathGradient *grad, GpStatus WINGDIPAPI GdipGetPathGradientCenterColor(GpPathGradient *grad, ARGB *colors) { - static int calls; - TRACE("(%p,%p)\n", grad, colors); - if(!(calls++)) - FIXME("not implemented\n"); + if (!grad || !colors) + return InvalidParameter; - return NotImplemented; + *colors = grad->centercolor; + + return Ok; } GpStatus WINGDIPAPI GdipGetPathGradientFocusScales(GpPathGradient *grad,