Use default tolerance for dashed paths in iced_wgpu

This commit is contained in:
Héctor Ramón Jiménez 2024-04-03 23:31:13 +02:00
parent 346ea313fd
commit d461f23e8d
No known key found for this signature in database
GPG key ID: 7CC46565708259A7

View file

@ -626,7 +626,9 @@ pub(super) fn dashed(path: &Path, line_dash: LineDash<'_>) -> Path {
let mut draw_line = false;
walk_along_path(
path.raw().iter().flattened(0.01),
path.raw().iter().flattened(
lyon::tessellation::StrokeOptions::DEFAULT_TOLERANCE,
),
0.0,
lyon::tessellation::StrokeOptions::DEFAULT_TOLERANCE,
&mut RepeatedPattern {