Always specify plane for clear screen

This commit is contained in:
Ryan Kennedy 2020-04-05 17:49:31 -05:00
parent 015c1c6597
commit 41a746fd2c

View file

@ -22,6 +22,11 @@ impl Screen for Graphics320x240x256 {
impl GraphicsWriter<u8> 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);
}