[PATCH 2/2] d2d1/effect: Forward IsBufferPrecisionSupported() to corresponding device context.

Nikolay Sivov wine at gitlab.winehq.org
Thu Jun 23 06:09:26 CDT 2022


From: Nikolay Sivov <nsivov at codeweavers.com>

Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
---
 dlls/d2d1/effect.c | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/dlls/d2d1/effect.c b/dlls/d2d1/effect.c
index f5d5494c67a..f1b877821c8 100644
--- a/dlls/d2d1/effect.c
+++ b/dlls/d2d1/effect.c
@@ -367,9 +367,12 @@ static HRESULT STDMETHODCALLTYPE d2d_effect_context_CheckFeatureSupport(ID2D1Eff
 static BOOL STDMETHODCALLTYPE d2d_effect_context_IsBufferPrecisionSupported(ID2D1EffectContext *iface,
         D2D1_BUFFER_PRECISION precision)
 {
-    FIXME("iface %p, precision %#x stub!\n", iface, precision);
+    struct d2d_effect_context *effect_context = impl_from_ID2D1EffectContext(iface);
 
-    return FALSE;
+    TRACE("iface %p, precision %u.\n", iface, precision);
+
+    return ID2D1DeviceContext1_IsBufferPrecisionSupported(&effect_context->device_context->ID2D1DeviceContext1_iface,
+            precision);
 }
 
 static const ID2D1EffectContextVtbl d2d_effect_context_vtbl =
-- 
GitLab

https://gitlab.winehq.org/wine/wine/-/merge_requests/300



More information about the wine-devel mailing list