Always specify plane for clear screen
This commit is contained in:
parent
015c1c6597
commit
41a746fd2c
|
@ -22,6 +22,11 @@ impl Screen for Graphics320x240x256 {
|
||||||
|
|
||||||
impl GraphicsWriter<u8> for Graphics320x240x256 {
|
impl GraphicsWriter<u8> for Graphics320x240x256 {
|
||||||
fn clear_screen(&self, color: u8) {
|
fn clear_screen(&self, color: u8) {
|
||||||
|
{
|
||||||
|
let mut vga = VGA.lock();
|
||||||
|
vga.sequencer_registers
|
||||||
|
.set_plane_mask(PlaneMask::ALL_PLANES);
|
||||||
|
}
|
||||||
unsafe {
|
unsafe {
|
||||||
self.get_frame_buffer().write_bytes(color, Self::SIZE);
|
self.get_frame_buffer().write_bytes(color, Self::SIZE);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue