summaryrefslogtreecommitdiff
path: root/graphics/src/render.rs
diff options
context:
space:
mode:
authorFreya Murphy <freya@freyacat.org>2025-11-08 23:42:50 -0500
committerFreya Murphy <freya@freyacat.org>2025-11-08 23:42:50 -0500
commitb089bc20865a98be2f42dac7f5d35deff5efb33a (patch)
tree1ef9111cf1e16563f4cfd5554289827f10daf3eb /graphics/src/render.rs
parentgraphics: set minimum window size (diff)
downloadDungeonCrawl-b089bc20865a98be2f42dac7f5d35deff5efb33a.tar.gz
DungeonCrawl-b089bc20865a98be2f42dac7f5d35deff5efb33a.tar.bz2
DungeonCrawl-b089bc20865a98be2f42dac7f5d35deff5efb33a.zip
graphics: have window default to minimum size
Diffstat (limited to 'graphics/src/render.rs')
-rw-r--r--graphics/src/render.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/graphics/src/render.rs b/graphics/src/render.rs
index 28631b2..18dc5e3 100644
--- a/graphics/src/render.rs
+++ b/graphics/src/render.rs
@@ -69,10 +69,10 @@ const UI_HEIGHT: u16 = (UI_PADDING + FONT_SIZE) * 3;
const TILE_SIZE: u16 = TEXTURE_SIZE * 3;
/// The render height of the screen
-const RENDER_HEIGHT: u16 = UI_HEIGHT + (TILE_SIZE * VIEW_DISTANCE);
+pub const RENDER_HEIGHT: u16 = UI_HEIGHT + (TILE_SIZE * VIEW_DISTANCE);
/// The render width of the screen
-const RENDER_WIDTH: u16 = RENDER_HEIGHT * 4 / 3;
+pub const RENDER_WIDTH: u16 = RENDER_HEIGHT * 4 / 3;
// Tile atlas.bmp textures
const ATLAS_WALL_SIDE: (u16, u16) = (0, 0);