From 185710ae8635eafc9e90ad36baf614b57819e7fb Mon Sep 17 00:00:00 2001 From: grimsace Date: Fri, 6 Mar 2026 11:25:51 -0600 Subject: [PATCH] changed wall and door size to be consistant --- src/main.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index 746d978..253eb56 100644 --- a/src/main.rs +++ b/src/main.rs @@ -382,9 +382,12 @@ fn draw_layout( layout: &DungeonLayout, colorblind_mode: bool, ) { + let wall_width_px = (geometry.cell_size / 5.0).max(1.0); + let door_width_px = (geometry.cell_size / 10.0).max(1.0); + let room_fill = Color32::from_rgb(70, 120, 160); let corridor_fill = Color32::from_rgb(210, 190, 120); - let outline_stroke = Stroke::new(3.0, Color32::BLACK); + let outline_stroke = Stroke::new(wall_width_px, Color32::BLACK); let mut corridor_cells_set = HashSet::new(); let mut corridor_edges_set = HashSet::new(); let mut room_cells_set = HashSet::new(); @@ -579,7 +582,7 @@ fn draw_layout( geometry, door.from, door.to, - Stroke::new(3.0, color), + Stroke::new(door_width_px, color), style, ); }