Nikolay Sivov : d2d1/effect: Forward IsBufferPrecisionSupported() to corresponding device context.

Alexandre Julliard julliard at winehq.org
Thu Jun 23 15:53:40 CDT 2022


Module: wine
Branch: master
Commit: 918535d437b8c3fce64a492f9b85cd593b4aebd7
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=918535d437b8c3fce64a492f9b85cd593b4aebd7

Author: Nikolay Sivov <nsivov at codeweavers.com>
Date:   Thu Jun 23 14:08:08 2022 +0300

d2d1/effect: Forward IsBufferPrecisionSupported() to corresponding device context.

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 =




More information about the wine-cvs mailing list