Commit 8bf26038 authored by Ziqing Hui's avatar Ziqing Hui Committed by Alexandre Julliard

d2d1: Implement d2d_effect_GetInput().

parent d5fb0dec
...@@ -214,7 +214,14 @@ static HRESULT STDMETHODCALLTYPE d2d_effect_SetInputCount(ID2D1Effect *iface, UI ...@@ -214,7 +214,14 @@ static HRESULT STDMETHODCALLTYPE d2d_effect_SetInputCount(ID2D1Effect *iface, UI
static void STDMETHODCALLTYPE d2d_effect_GetInput(ID2D1Effect *iface, UINT32 index, ID2D1Image **input) static void STDMETHODCALLTYPE d2d_effect_GetInput(ID2D1Effect *iface, UINT32 index, ID2D1Image **input)
{ {
FIXME("iface %p, index %u, input %p stub!\n", iface, index, input); struct d2d_effect *effect = impl_from_ID2D1Effect(iface);
TRACE("iface %p, index %u, input %p.\n", iface, index, input);
if (index < effect->input_count && effect->inputs[index])
ID2D1Image_AddRef(*input = effect->inputs[index]);
else
*input = NULL;
} }
static UINT32 STDMETHODCALLTYPE d2d_effect_GetInputCount(ID2D1Effect *iface) static UINT32 STDMETHODCALLTYPE d2d_effect_GetInputCount(ID2D1Effect *iface)
......
...@@ -9824,7 +9824,6 @@ static void test_effect(BOOL d3d11) ...@@ -9824,7 +9824,6 @@ static void test_effect(BOOL d3d11)
{ {
winetest_push_context("Input %u", j); winetest_push_context("Input %u", j);
ID2D1Effect_GetInput(effect, j, &image_a); ID2D1Effect_GetInput(effect, j, &image_a);
todo_wine
ok(image_a == NULL, "Got unexpected image_a %p.\n", image_a); ok(image_a == NULL, "Got unexpected image_a %p.\n", image_a);
winetest_pop_context(); winetest_pop_context();
} }
...@@ -9845,14 +9844,11 @@ static void test_effect(BOOL d3d11) ...@@ -9845,14 +9844,11 @@ static void test_effect(BOOL d3d11)
ID2D1Effect_GetInput(effect, j, &image_a); ID2D1Effect_GetInput(effect, j, &image_a);
if (j == 0) if (j == 0)
{ {
todo_wine
ok(image_a == (ID2D1Image *)bitmap, "Got unexpected image_a %p.\n", image_a); ok(image_a == (ID2D1Image *)bitmap, "Got unexpected image_a %p.\n", image_a);
if (image_a == (ID2D1Image *)bitmap) ID2D1Image_Release(image_a);
ID2D1Image_Release(image_a);
} }
else else
{ {
todo_wine
ok(image_a == NULL, "Got unexpected image_a %p.\n", image_a); ok(image_a == NULL, "Got unexpected image_a %p.\n", image_a);
} }
winetest_pop_context(); winetest_pop_context();
...@@ -9864,7 +9860,6 @@ static void test_effect(BOOL d3d11) ...@@ -9864,7 +9860,6 @@ static void test_effect(BOOL d3d11)
image_a = (ID2D1Image *)0xdeadbeef; image_a = (ID2D1Image *)0xdeadbeef;
ID2D1Effect_SetInput(effect, j, (ID2D1Image *)bitmap, FALSE); ID2D1Effect_SetInput(effect, j, (ID2D1Image *)bitmap, FALSE);
ID2D1Effect_GetInput(effect, j, &image_a); ID2D1Effect_GetInput(effect, j, &image_a);
todo_wine
ok(image_a == NULL, "Got unexpected image_a %p.\n", image_a); ok(image_a == NULL, "Got unexpected image_a %p.\n", image_a);
winetest_pop_context(); winetest_pop_context();
} }
......
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