From 25b330efe117f61ddde038c71b34a2f579f78af6 Mon Sep 17 00:00:00 2001 From: Freya Murphy Date: Sun, 9 Nov 2025 15:06:32 -0500 Subject: minor changes --- dungeon/src/bsp.rs | 4 ++-- graphics/src/lib.rs | 3 +++ graphics/src/render.rs | 3 --- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/dungeon/src/bsp.rs b/dungeon/src/bsp.rs index 4c72389..5800d8d 100644 --- a/dungeon/src/bsp.rs +++ b/dungeon/src/bsp.rs @@ -17,7 +17,7 @@ const MAX_ROOM_SIZE: usize = 12; /// The `Rect` type represents a rectangle inside the map (x,y,width,height). /// (x,y) is the top-left corner. #[derive(Debug, Clone, Copy)] -pub(crate) struct Rect { +struct Rect { x: usize, y: usize, w: usize, @@ -40,7 +40,7 @@ impl Rect { /// The `Node` type represents a node in the BSP tree. /// Has optional left and right children, and an optional room rectangle. #[derive(Debug)] -pub(crate) struct Node { +struct Node { rect: Rect, // Area this node covers left: Option>, // Left child (if not leaf) right: Option>, // Right child (if not leaf) diff --git a/graphics/src/lib.rs b/graphics/src/lib.rs index 2051177..5c1161b 100644 --- a/graphics/src/lib.rs +++ b/graphics/src/lib.rs @@ -51,6 +51,9 @@ impl Window { .vsync() .build(); + // update window min size + handle.set_window_min_size(width.into(), height.into()); + // load audio let audio = Audio::load()?; diff --git a/graphics/src/render.rs b/graphics/src/render.rs index 8a8aeff..1888ef4 100644 --- a/graphics/src/render.rs +++ b/graphics/src/render.rs @@ -177,9 +177,6 @@ impl Renderer { RENDER_HEIGHT as u32, )?; - // update window min size - handle.set_window_min_size(RENDER_WIDTH.into(), RENDER_HEIGHT.into()); - Ok(Self { textures, tilemap_fg, -- cgit v1.2.3-freya