From 9ac0674e627b29306336a1f1301ea34ff7cfd09e Mon Sep 17 00:00:00 2001 From: Dustin Carlino Date: Thu, 24 Jan 2019 18:05:42 -0800 Subject: [PATCH] stop rounding yellow center lines. the roundness gets cut off by the intersection anyway. --- docs/TODO_ux.md | 3 ++- editor/src/render/lane.rs | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/TODO_ux.md b/docs/TODO_ux.md index ea071ee127..2ac14d54bd 100644 --- a/docs/TODO_ux.md +++ b/docs/TODO_ux.md @@ -67,9 +67,10 @@ - speed - for things like lanes with markings, build up a single thing that can be drawn... - - draw_rounded_line is useless for center lines now + - but with an easier API... imperative draw single thing or prerender many things should be same - change ezgui API to allow uploading geometry once - what about color then? get fancy and plumb an override color uniform? + - stop storing raw geometry when appropriate - sleep better in the event loop - first make UserInput borrow state and not need to consume - experiment with batching and not passing colors diff --git a/editor/src/render/lane.rs b/editor/src/render/lane.rs index 021cca6e3d..3f7f981c94 100644 --- a/editor/src/render/lane.rs +++ b/editor/src/render/lane.rs @@ -31,7 +31,7 @@ impl DrawLane { let lines = road.center_pts.lines(); markings.push(Box::new(move |g, cs| { for line in &lines { - g.draw_rounded_line( + g.draw_line( cs.get_def("road center line", Color::YELLOW), BIG_ARROW_THICKNESS, line,