[v3 PATCH 2/3] d2d1: Remove unused argument from constant buffer initialization helper.

Nikolay Sivov nsivov at codeweavers.com
Thu Jun 10 07:13:22 CDT 2021


Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
---
 dlls/d2d1/brush.c | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/dlls/d2d1/brush.c b/dlls/d2d1/brush.c
index 76276bafc7a..94ed95337f4 100644
--- a/dlls/d2d1/brush.c
+++ b/dlls/d2d1/brush.c
@@ -1122,8 +1122,7 @@ static D3D10_TEXTURE_ADDRESS_MODE texture_address_mode_from_extend_mode(D2D1_EXT
     }
 }
 
-static BOOL d2d_brush_fill_cb(const struct d2d_brush *brush,
-        const struct d2d_device_context *render_target, struct d2d_brush_cb *cb)
+static BOOL d2d_brush_fill_cb(const struct d2d_brush *brush, struct d2d_brush_cb *cb)
 {
     float theta, sin_theta, cos_theta;
     float dpi_scale, d, s1, s2, t, u;
@@ -1249,9 +1248,9 @@ HRESULT d2d_brush_get_ps_cb(struct d2d_brush *brush, struct d2d_brush *opacity_b
 
     cb_data.outline = outline;
     cb_data.is_arc = is_arc;
-    if (!d2d_brush_fill_cb(brush, render_target, &cb_data.colour_brush))
+    if (!d2d_brush_fill_cb(brush, &cb_data.colour_brush))
         return E_NOTIMPL;
-    if (!d2d_brush_fill_cb(opacity_brush, render_target, &cb_data.opacity_brush))
+    if (!d2d_brush_fill_cb(opacity_brush, &cb_data.opacity_brush))
         return E_NOTIMPL;
 
     buffer_desc.ByteWidth = sizeof(cb_data);
-- 
2.30.2




More information about the wine-devel mailing list