Always specify plane for clear screen

mode-320-240
Ryan Kennedy 2020-04-05 17:49:31 -05:00
parent f828663b39
commit 6106f39d0e
1 changed files with 5 additions and 0 deletions

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