[PATCH 2/2] d2d1: Remove idempotent SetSegmentFlags(NONE) when flattening cubics

Stefan Brüns stefan.bruens at rwth-aachen.de
Thu Jan 6 15:32:42 CST 2022


As recursion can only be left with an AddLines call, the current/next
segment flags already is D2D1_PATH_SEGMENT_NONE.
---
 dlls/d2d1/geometry.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/dlls/d2d1/geometry.c b/dlls/d2d1/geometry.c
index ac5f1019f3f..127aaa65fa4 100644
--- a/dlls/d2d1/geometry.c
+++ b/dlls/d2d1/geometry.c
@@ -3741,7 +3741,6 @@ static void d2d_geometry_flatten_cubic(ID2D1SimplifiedGeometrySink *sink, const
     d2d_geometry_flatten_cubic(sink, p0, &b0, tolerance);
     ID2D1SimplifiedGeometrySink_SetSegmentFlags(sink, D2D1_PATH_SEGMENT_FORCE_ROUND_LINE_JOIN);
     d2d_geometry_flatten_cubic(sink, &b0.point3, &b1, tolerance);
-    ID2D1SimplifiedGeometrySink_SetSegmentFlags(sink, D2D1_PATH_SEGMENT_NONE);
 }
 
 static HRESULT STDMETHODCALLTYPE d2d_path_geometry_Simplify(ID2D1PathGeometry *iface,
-- 
2.34.1




More information about the wine-devel mailing list