From ebcce3183b8709020101f27f9a619c0444d2cf61 Mon Sep 17 00:00:00 2001 From: Llywelwyn Date: Sun, 3 Sep 2023 06:56:05 +0100 Subject: [PATCH] fixes off-by-one pixels with a small gutter not sure why this fixes it - but it does. needs some testing. --- src/main.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main.rs b/src/main.rs index 6510977..f926608 100644 --- a/src/main.rs +++ b/src/main.rs @@ -28,6 +28,7 @@ fn main() -> rltk::BError { .with_font("curses11x20.png", 11, 20) .with_font("healthbar22x2.png", 1, 1) .with_tile_dimensions(22, 20) + .with_gutter(2) .with_simple_console(DISPLAYWIDTH, DISPLAYHEIGHT, "nagidal22x20_centred.png") .with_sparse_console(DISPLAYWIDTH * 2, DISPLAYHEIGHT, "curses11x20.png") .with_sparse_console(DISPLAYWIDTH * 22, DISPLAYHEIGHT * 20, "healthbar22x2.png")