Fix: Exclusive range (#650)

This commit is contained in:
Corwin 2024-04-21 16:39:20 +01:00 committed by GitHub
commit a957a812c7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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);
}
}