From 9845cf32548f8bda571fb3d98d4f532db40be2d9 Mon Sep 17 00:00:00 2001 From: Emil Ernerfeldt Date: Tue, 4 Feb 2025 15:25:59 +0100 Subject: [PATCH] Add TODOs --- crates/epaint/src/tessellator.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/crates/epaint/src/tessellator.rs b/crates/epaint/src/tessellator.rs index 34ba1e7d3..e8f8ad52c 100644 --- a/crates/epaint/src/tessellator.rs +++ b/crates/epaint/src/tessellator.rs @@ -1135,6 +1135,10 @@ fn stroke_and_fill_path( // (in the future it would be great with an option to add a circular end instead) + // TODO(emilk): we should probably shrink before adding the line caps, + // so that we don't add to the area of the line. + // TODO(emilk): make line caps optional. + out.reserve_triangles(6 * n as usize + 4); out.reserve_vertices(4 * n as usize);