From 2560f2e15e220b8f10fa8a2787586eec4077e0ab Mon Sep 17 00:00:00 2001 From: Corwin Date: Sun, 21 Apr 2024 16:31:41 +0100 Subject: [PATCH] exclusive range --- agb/src/panics_render/text.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agb/src/panics_render/text.rs b/agb/src/panics_render/text.rs index 6e0026d3..7155c415 100644 --- a/agb/src/panics_render/text.rs +++ b/agb/src/panics_render/text.rs @@ -57,7 +57,7 @@ impl<'bitmap, 'gba> BitmapTextRender<'bitmap, 'gba> { let x = x as i32 + self.head_position.x; let y = y as i32 + y_position_start; - if rendered && (0..=WIDTH).contains(&x) && (0..=HEIGHT).contains(&y) { + if rendered && (0..WIDTH).contains(&x) && (0..HEIGHT).contains(&y) { self.bitmap.draw_point(x, y, self.colour); } }