From 41a746fd2c8257d4b995d783f6a30795caafb442 Mon Sep 17 00:00:00 2001 From: Ryan Kennedy Date: Sun, 5 Apr 2020 17:49:31 -0500 Subject: [PATCH] Always specify plane for clear screen --- src/writers/graphics_320x240x256.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/writers/graphics_320x240x256.rs b/src/writers/graphics_320x240x256.rs index ae89116..04b1fe7 100644 --- a/src/writers/graphics_320x240x256.rs +++ b/src/writers/graphics_320x240x256.rs @@ -22,6 +22,11 @@ impl Screen for Graphics320x240x256 { impl GraphicsWriter for Graphics320x240x256 { fn clear_screen(&self, color: u8) { + { + let mut vga = VGA.lock(); + vga.sequencer_registers + .set_plane_mask(PlaneMask::ALL_PLANES); + } unsafe { self.get_frame_buffer().write_bytes(color, Self::SIZE); }