[PATCH v4 4/4] d2d1: Implement d2d_effect_GetOutput.

Ziqing Hui zhui at codeweavers.com
Tue Jul 13 04:17:43 CDT 2021


Signed-off-by: Ziqing Hui <zhui at codeweavers.com>
---
 dlls/d2d1/effect.c     | 6 +++++-
 dlls/d2d1/tests/d2d1.c | 1 -
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/dlls/d2d1/effect.c b/dlls/d2d1/effect.c
index 50cd8864921..09ff140884b 100644
--- a/dlls/d2d1/effect.c
+++ b/dlls/d2d1/effect.c
@@ -193,7 +193,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 HRESULT STDMETHODCALLTYPE d2d_effect_image_QueryInterface(ID2D1Image *iface, REFIID iid, void **out)
diff --git a/dlls/d2d1/tests/d2d1.c b/dlls/d2d1/tests/d2d1.c
index 48fc064f91e..76ca9500cfb 100644
--- a/dlls/d2d1/tests/d2d1.c
+++ b/dlls/d2d1/tests/d2d1.c
@@ -9706,7 +9706,6 @@ static void test_effect(BOOL d3d11)
     ok(hr == S_OK, "Failed to get image interface, hr %#x.\n", hr);
 
     ID2D1Effect_GetOutput(effect, &image_b);
-    todo_wine
     ok(image_a == image_b, "Image interface mismatch.\n");
 
 end:
-- 
2.25.1




More information about the wine-devel mailing list