[PATCH 3/5] d2d1: Implement d2d_solid_color_brush_SetColor().

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


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

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




More information about the wine-patches mailing list