Commit c6a40ff6 authored by Ziqing Hui's avatar Ziqing Hui Committed by Alexandre Julliard

d2d1: Implement d2d_effect_GetOutput().

parent 0408225f
......@@ -190,7 +190,11 @@ static UINT32 STDMETHODCALLTYPE d2d_effect_GetInputCount(ID2D1Effect *iface)
static void STDMETHODCALLTYPE d2d_effect_GetOutput(ID2D1Effect *iface, ID2D1Image **output)
{
FIXME("iface %p, output %p stub!\n", iface, output);
struct d2d_effect *effect = impl_from_ID2D1Effect(iface);
TRACE("iface %p, output %p.\n", iface, output);
ID2D1Image_AddRef(*output = &effect->ID2D1Image_iface);
}
static const ID2D1EffectVtbl d2d_effect_vtbl =
......
......@@ -9680,7 +9680,7 @@ static void test_mt_factory(BOOL d3d11)
static void test_effect(BOOL d3d11)
{
ID2D1Image *image_a, *image_b = NULL;
ID2D1Image *image_a, *image_b;
struct d2d1_test_context ctx;
ID2D1DeviceContext *context;
ID2D1Factory1 *factory;
......@@ -9705,9 +9705,8 @@ static void test_effect(BOOL d3d11)
hr = ID2D1Effect_QueryInterface(effect, &IID_ID2D1Image, (void **)&image_a);
ok(hr == S_OK, "Got unexpected hr %#x.\n", hr);
ID2D1Effect_GetOutput(effect, &image_b);
todo_wine ok(image_b == image_a, "Got unexpected image_b %p, expected %p.\n", image_b, image_a);
if (image_b)
ID2D1Image_Release(image_b);
ok(image_b == image_a, "Got unexpected image_b %p, expected %p.\n", image_b, image_a);
ID2D1Image_Release(image_b);
ID2D1Image_Release(image_a);
ID2D1Effect_Release(effect);
......
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