diff options
author | 2024-04-03 23:31:13 +0200 | |
---|---|---|
committer | 2024-04-03 23:31:13 +0200 | |
commit | d461f23e8dd34c5de73e0aa176a3301b01564652 (patch) | |
tree | 6d6ab858b9d6db37e188a7febca9a9e872900ae3 /wgpu | |
parent | 346ea313fd41d893627bfe1a4dba351713c07ea4 (diff) | |
download | iced-d461f23e8dd34c5de73e0aa176a3301b01564652.tar.gz iced-d461f23e8dd34c5de73e0aa176a3301b01564652.tar.bz2 iced-d461f23e8dd34c5de73e0aa176a3301b01564652.zip |
Use default tolerance for dashed paths in `iced_wgpu`
Diffstat (limited to 'wgpu')
-rw-r--r-- | wgpu/src/geometry.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/wgpu/src/geometry.rs b/wgpu/src/geometry.rs index 7c8c0a35..d153c764 100644 --- a/wgpu/src/geometry.rs +++ b/wgpu/src/geometry.rs @@ -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 { |