Commit 3d8e7ea6 authored by Michael Stefaniuc's avatar Michael Stefaniuc Committed by Alexandre Julliard

d2d1: Remove superfluous casts to self.

parent de034b36
...@@ -1258,7 +1258,7 @@ static void STDMETHODCALLTYPE d2d_image_brush_GetImage(ID2D1ImageBrush *iface, I ...@@ -1258,7 +1258,7 @@ static void STDMETHODCALLTYPE d2d_image_brush_GetImage(ID2D1ImageBrush *iface, I
TRACE("iface %p, image %p.\n", iface, image); TRACE("iface %p, image %p.\n", iface, image);
if ((*image = (ID2D1Image *)brush->u.image.image)) if ((*image = brush->u.image.image))
ID2D1Image_AddRef(*image); ID2D1Image_AddRef(*image);
} }
......
...@@ -2338,7 +2338,7 @@ static void STDMETHODCALLTYPE d2d_device_context_GetDevice(ID2D1DeviceContext1 * ...@@ -2338,7 +2338,7 @@ static void STDMETHODCALLTYPE d2d_device_context_GetDevice(ID2D1DeviceContext1 *
TRACE("iface %p, device %p.\n", iface, device); TRACE("iface %p, device %p.\n", iface, device);
*device = (ID2D1Device *)context->device; *device = context->device;
ID2D1Device_AddRef(*device); ID2D1Device_AddRef(*device);
} }
......
...@@ -9786,7 +9786,7 @@ static void test_command_list(BOOL d3d11) ...@@ -9786,7 +9786,7 @@ static void test_command_list(BOOL d3d11)
stroke_desc.dashStyle = D2D1_DASH_STYLE_DOT; stroke_desc.dashStyle = D2D1_DASH_STYLE_DOT;
stroke_desc.dashOffset = -1.0f; stroke_desc.dashOffset = -1.0f;
hr = ID2D1Factory_CreateStrokeStyle((ID2D1Factory *)ctx.factory, &stroke_desc, NULL, 0, &stroke_style); hr = ID2D1Factory_CreateStrokeStyle(ctx.factory, &stroke_desc, NULL, 0, &stroke_style);
ok(hr == S_OK, "Got unexpected hr %#lx.\n", hr); ok(hr == S_OK, "Got unexpected hr %#lx.\n", hr);
set_color(&color, 0.0f, 0.0f, 0.0f, 0.0f); set_color(&color, 0.0f, 0.0f, 0.0f, 0.0f);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment