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) {