mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-15 08:30:02 +00:00
refactor(graphics-server): remove backend::XousDisplay::update
It's no longer necessary because the `minifb` backend now automatically calls `minifb::Window::update_with_buffer` in a dedicated thread.
This commit is contained in:
parent
679a1b2b12
commit
e8aba2810a
3 changed files with 0 additions and 16 deletions
|
|
@ -212,9 +212,6 @@ impl XousDisplay {
|
|||
log::trace!("redraw {}/{}", busy_count, dirty_count);
|
||||
}
|
||||
|
||||
// note: this API is used by emulation, don't remove calls to it
|
||||
pub fn update(&mut self) {}
|
||||
|
||||
pub fn native_buffer(&mut self) -> &mut [u32; FB_SIZE] {
|
||||
unsafe { &mut *(self.fb.as_mut_ptr() as *mut [u32; FB_SIZE]) }
|
||||
}
|
||||
|
|
|
|||
|
|
@ -74,7 +74,6 @@ impl XousDisplay {
|
|||
self.emulated_buffer[FB_WIDTH_WORDS * 32..]
|
||||
.copy_from_slice(&self.srfb[FB_WIDTH_WORDS * 32..]);
|
||||
self.redraw();
|
||||
self.update();
|
||||
}
|
||||
|
||||
pub fn screen_size(&self) -> Point {
|
||||
|
|
@ -99,9 +98,6 @@ impl XousDisplay {
|
|||
self.emulated_to_native();
|
||||
}
|
||||
|
||||
// TODO: `update` is no longer needed for emulation; remove it
|
||||
pub fn update(&mut self) {}
|
||||
|
||||
fn emulated_to_native(&mut self) {
|
||||
const DEVBOOT_LINE: usize = 7;
|
||||
let mut native_buffer = self.native_buffer.lock().unwrap();
|
||||
|
|
|
|||
|
|
@ -392,7 +392,6 @@ fn wrapped_main() -> ! {
|
|||
}
|
||||
Some(Opcode::Flush) => {
|
||||
log::trace!("***gfx flush*** redraw##");
|
||||
display.update();
|
||||
display.redraw();
|
||||
}
|
||||
Some(Opcode::Clear) => {
|
||||
|
|
@ -455,12 +454,10 @@ fn wrapped_main() -> ! {
|
|||
}),
|
||||
Some(Opcode::DrawSleepScreen) => msg_scalar_unpack!(msg, _, _, _, _, {
|
||||
display.blit_screen(&logo::LOGO_MAP);
|
||||
display.update();
|
||||
display.redraw();
|
||||
}),
|
||||
Some(Opcode::DrawBootLogo) => msg_scalar_unpack!(msg, _, _, _, _, {
|
||||
display.blit_screen(&poweron::LOGO_MAP);
|
||||
display.update();
|
||||
display.redraw();
|
||||
}),
|
||||
Some(Opcode::Devboot) => msg_scalar_unpack!(msg, ena, _, _, _, {
|
||||
|
|
@ -543,7 +540,6 @@ fn wrapped_main() -> ! {
|
|||
testpat[lines * backend::FB_WIDTH_WORDS + (backend::FB_WIDTH_WORDS - 1)] |= 0x1_0000;
|
||||
}
|
||||
display.blit_screen(testpat);
|
||||
display.update();
|
||||
display.redraw();
|
||||
ticktimer.sleep_ms(DWELL).unwrap();
|
||||
|
||||
|
|
@ -553,7 +549,6 @@ fn wrapped_main() -> ! {
|
|||
}
|
||||
// dirty bits already set
|
||||
display.blit_screen(testpat);
|
||||
display.update();
|
||||
display.redraw();
|
||||
ticktimer.sleep_ms(DWELL).unwrap();
|
||||
|
||||
|
|
@ -564,7 +559,6 @@ fn wrapped_main() -> ! {
|
|||
}
|
||||
}
|
||||
display.blit_screen(testpat);
|
||||
display.update();
|
||||
display.redraw();
|
||||
ticktimer.sleep_ms(DWELL).unwrap();
|
||||
|
||||
|
|
@ -574,7 +568,6 @@ fn wrapped_main() -> ! {
|
|||
}
|
||||
}
|
||||
display.blit_screen(testpat);
|
||||
display.update();
|
||||
display.redraw();
|
||||
ticktimer.sleep_ms(DWELL).unwrap();
|
||||
|
||||
|
|
@ -590,7 +583,6 @@ fn wrapped_main() -> ! {
|
|||
testpat[lines * backend::FB_WIDTH_WORDS + (backend::FB_WIDTH_WORDS - 1)] |= 0x1_0000;
|
||||
}
|
||||
display.blit_screen(testpat);
|
||||
display.update();
|
||||
display.redraw();
|
||||
ticktimer.sleep_ms(DWELL).unwrap();
|
||||
|
||||
|
|
@ -605,7 +597,6 @@ fn wrapped_main() -> ! {
|
|||
testpat[lines * backend::FB_WIDTH_WORDS + (backend::FB_WIDTH_WORDS - 1)] |= 0x1_0000;
|
||||
}
|
||||
display.blit_screen(testpat);
|
||||
display.update();
|
||||
display.redraw();
|
||||
ticktimer.sleep_ms(DWELL).unwrap();
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue