Vincent Povirk : gdiplus: Implement GdipGetPathGradientCenterColor.
Alexandre Julliard
julliard at winehq.org
Mon Apr 2 13:14:49 CDT 2012
Module: wine
Branch: master
Commit: a85bb87cc3e12af45e288904402906503fee190e
URL: http://source.winehq.org/git/wine.git/?a=commit;h=a85bb87cc3e12af45e288904402906503fee190e
Author: Vincent Povirk <vincent at codeweavers.com>
Date: Sat Mar 31 11:20:11 2012 -0500
gdiplus: Implement GdipGetPathGradientCenterColor.
---
dlls/gdiplus/brush.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/dlls/gdiplus/brush.c b/dlls/gdiplus/brush.c
index b7dd1d5..9eb9dff 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,
More information about the wine-cvs
mailing list