summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFreya Murphy <freya@freyacat.org>2025-11-14 12:18:11 -0500
committerFreya Murphy <freya@freyacat.org>2025-11-14 12:20:01 -0500
commitef1cf1dd58df5157c9501911756010754257d0fa (patch)
tree74a019d030ce592f6d96dced712db32652f0c7c8
parentgraphics: refactor timer (diff)
downloadDungeonCrawl-ef1cf1dd58df5157c9501911756010754257d0fa.tar.gz
DungeonCrawl-ef1cf1dd58df5157c9501911756010754257d0fa.tar.bz2
DungeonCrawl-ef1cf1dd58df5157c9501911756010754257d0fa.zip
graphics: make more constants dependant on texture size
-rw-r--r--graphics/src/render.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/graphics/src/render.rs b/graphics/src/render.rs
index ba6cf81..a206e04 100644
--- a/graphics/src/render.rs
+++ b/graphics/src/render.rs
@@ -73,7 +73,7 @@ const WALL_HEIGHT: u16 = 7;
const VIEW_DISTANCE: u16 = 9;
/// The size of padding in the UI
-const UI_PADDING: u16 = 8;
+const UI_PADDING: u16 = TEXTURE_SIZE / 2;
/// The size of the font
const FONT_SIZE: u16 = TEXTURE_SIZE;