[PATCH 4/5] d2d1: Do not multiply color brush RGB values with the brush opacity.

Henri Verbeet hverbeet at codeweavers.com
Mon Mar 30 02:17:04 CDT 2015


---
 dlls/d2d1/render_target.c |    3 ---
 1 file changed, 3 deletions(-)

diff --git a/dlls/d2d1/render_target.c b/dlls/d2d1/render_target.c
index da8937c..c078989 100644
--- a/dlls/d2d1/render_target.c
+++ b/dlls/d2d1/render_target.c
@@ -636,9 +636,6 @@ static void STDMETHODCALLTYPE d2d_d3d_render_target_FillRectangle(ID2D1RenderTar
         ps = render_target->rect_solid_ps;
 
         color = brush_impl->u.solid.color;
-        color.r *= brush_impl->opacity;
-        color.g *= brush_impl->opacity;
-        color.b *= brush_impl->opacity;
         color.a *= brush_impl->opacity;
 
         buffer_desc.ByteWidth = sizeof(color);
-- 
1.7.10.4




More information about the wine-patches mailing list