[PATCH 4/5] d2d1: Implement d2d_solid_color_brush_GetColor().

Henri Verbeet hverbeet at codeweavers.com
Thu Nov 6 01:20:16 CST 2014


---
 dlls/d2d1/brush.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/dlls/d2d1/brush.c b/dlls/d2d1/brush.c
index 04b273a..eacbebb 100644
--- a/dlls/d2d1/brush.c
+++ b/dlls/d2d1/brush.c
@@ -252,11 +252,11 @@ static void STDMETHODCALLTYPE d2d_solid_color_brush_SetColor(ID2D1SolidColorBrus
 
 static D2D1_COLOR_F * STDMETHODCALLTYPE d2d_solid_color_brush_GetColor(ID2D1SolidColorBrush *iface, D2D1_COLOR_F *color)
 {
-    static const D2D1_COLOR_F black = {0.0f, 0.0f, 0.0f, 1.0f};
+    struct d2d_brush *brush = impl_from_ID2D1SolidColorBrush(iface);
 
-    FIXME("iface %p, color %p stub!\n", iface, color);
+    TRACE("iface %p, color %p.\n", iface, color);
 
-    *color = black;
+    *color = brush->u.solid.color;
     return color;
 }
 
-- 
1.7.10.4




More information about the wine-patches mailing list