From 4343a4a9265d028a9a75e71397addd541d5be37b Mon Sep 17 00:00:00 2001 From: pjht Date: Fri, 13 Sep 2024 10:10:21 -0500 Subject: [PATCH] Reset framebuffer clear color back to black --- src/main.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main.rs b/src/main.rs index 6aede2e..4f4b43d 100644 --- a/src/main.rs +++ b/src/main.rs @@ -94,14 +94,14 @@ impl Bga { } self.draw_buffer .resize(xres as usize * yres as usize * 4 * 2, 0); - self.draw_buffer.fill(32); + self.draw_buffer.fill(0); self.scroll_offset = 0; self.xres = xres as usize; self.yres = yres as usize; } pub fn clear(&mut self) { - self.draw_buffer.fill(32); + self.draw_buffer.fill(0); self.scroll_offset = 0; } @@ -138,7 +138,7 @@ impl Bga { return; } let offset = self.row_byte_offset(row); - self.draw_buffer[offset..][..(self.xres * 4)].fill(32); + self.draw_buffer[offset..][..(self.xres * 4)].fill(0); } pub fn clear_row(&mut self, row: usize) {