[PATCH] d2d1: Silence SetSegmentFlags FIXME when setting default value

Stefan Brüns stefan.bruens at rwth-aachen.de
Fri Jan 7 09:44:52 CST 2022


Some software (Buhl Tax and variants) repeatedly calls SetSegmentFlags
with D2D1_PATH_SEGMENT_NONE, which is just the default value and has no
effect (unless the flags where already changed for the current segment,
which still reports a FIXME).

Signed-off-by: Stefan Brüns <stefan.bruens at rwth-aachen.de>
---
 dlls/d2d1/geometry.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/dlls/d2d1/geometry.c b/dlls/d2d1/geometry.c
index a7074899fda..ac5f1019f3f 100644
--- a/dlls/d2d1/geometry.c
+++ b/dlls/d2d1/geometry.c
@@ -2773,6 +2773,8 @@ static void STDMETHODCALLTYPE d2d_geometry_sink_SetFillMode(ID2D1GeometrySink *i
 
 static void STDMETHODCALLTYPE d2d_geometry_sink_SetSegmentFlags(ID2D1GeometrySink *iface, D2D1_PATH_SEGMENT flags)
 {
+    if (flags == D2D1_PATH_SEGMENT_NONE)
+	return;
     FIXME("iface %p, flags %#x stub!\n", iface, flags);
 }
 
-- 
2.34.1




More information about the wine-devel mailing list