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

Ziqing Hui zhui at codeweavers.com
Thu Jul 8 05:12:00 CDT 2021


Signed-off-by: Ziqing Hui <zhui at codeweavers.com>
---

v2: Avoid call QueryInterface and add Trace message.

 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 0fea71664d4..9b515cb9838 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 8852aadec03..9f8dc3252c2 100644
--- a/dlls/d2d1/tests/d2d1.c
+++ b/dlls/d2d1/tests/d2d1.c
@@ -9710,7 +9710,6 @@ static void test_effect(BOOL d3d11)
         goto end;
 
     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