From ac9f9da3c45caabb8a864521cff03033602630c6 Mon Sep 17 00:00:00 2001 From: Schuwi Date: Fri, 6 Mar 2026 22:57:05 +0100 Subject: [PATCH] Fix green bar at bottom of map caused by off-by-one in map height map_h was subtracting MARGIN twice but the map_area only has a single bottom margin, leaving the last 8 rows of the land background unrendered. Co-Authored-By: Claude Sonnet 4.6 --- src/render.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/render.rs b/src/render.rs index 19331b8..50ed309 100644 --- a/src/render.rs +++ b/src/render.rs @@ -167,7 +167,7 @@ pub fn render_frame( let map_area = root.margin(TITLE_H, MARGIN, MARGIN, LEGEND_W + MARGIN); let map_w = IMG_WIDTH - LEGEND_W - MARGIN * 2; - let map_h = IMG_HEIGHT - TITLE_H - MARGIN * 2; + let map_h = IMG_HEIGHT - TITLE_H - MARGIN; map_area.fill(&LAND_BG).context("fill map area")?;