From: Nikolay Sivov <nsivov@codeweavers.com> Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com> --- dlls/d2d1/tests/d2d1.c | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/dlls/d2d1/tests/d2d1.c b/dlls/d2d1/tests/d2d1.c index 65f4f9336f2..dca2c9cf3b3 100644 --- a/dlls/d2d1/tests/d2d1.c +++ b/dlls/d2d1/tests/d2d1.c @@ -7505,6 +7505,7 @@ static void test_stroke_style(BOOL d3d11) }; D2D1_STROKE_STYLE_PROPERTIES desc; struct d2d1_test_context ctx; + ID2D1StrokeStyle1 *style1; ID2D1StrokeStyle *style; UINT32 count; HRESULT hr; @@ -7628,6 +7629,29 @@ static void test_stroke_style(BOOL d3d11) ID2D1StrokeStyle_Release(style); + if (ctx.factory1) + { + D2D1_STROKE_TRANSFORM_TYPE transform_type; + + hr = ID2D1Factory_CreateStrokeStyle(ctx.factory, &desc, NULL, 0, &style); + ok(hr == S_OK, "Got unexpected hr %#lx.\n", hr); + + hr = ID2D1StrokeStyle_QueryInterface(style, &IID_ID2D1StrokeStyle1, (void **)&style1); + todo_wine + ok(hr == S_OK, "Got unexpected hr %#lx.\n", hr); + + if (hr == S_OK) + { + transform_type = ID2D1StrokeStyle1_GetStrokeTransformType(style1); + ok(transform_type == D2D1_STROKE_TRANSFORM_TYPE_NORMAL, "Unexpected type %u.\n", transform_type); + + ID2D1StrokeStyle1_Release(style1); + } + ID2D1StrokeStyle_Release(style); + } + else + win_skip("ID2D1StrokeStyle1 is not supported.\n"); + release_test_context(&ctx); } -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/9904