add window manager system
This commit is contained in:
@@ -79,7 +79,6 @@ impl PrometeuOS {
|
||||
|
||||
if run.reason == crate::virtual_machine::LogicalFrameEndingReason::FrameSync {
|
||||
hw.gfx_mut().render_all();
|
||||
self.end_logical_frame(hw);
|
||||
self.logical_frame_index += 1;
|
||||
self.logical_frame_active = false;
|
||||
self.logical_frame_remaining_cycles = 0;
|
||||
@@ -95,15 +94,10 @@ impl PrometeuOS {
|
||||
None
|
||||
}
|
||||
|
||||
fn begin_logical_frame(&mut self, signals: &InputSignals, hw: &mut dyn HardwareBridge) {
|
||||
fn begin_logical_frame(&mut self, _signals: &InputSignals, hw: &mut dyn HardwareBridge) {
|
||||
hw.audio_mut().clear_commands();
|
||||
hw.touch_mut().begin_frame(signals);
|
||||
hw.pad_mut().begin_frame(signals);
|
||||
}
|
||||
|
||||
fn end_logical_frame(&mut self, hw: &mut dyn HardwareBridge) {
|
||||
hw.gfx_mut().present();
|
||||
}
|
||||
|
||||
// Helper para syscalls
|
||||
pub fn get_color(&self, index: usize, hw: &mut dyn HardwareBridge) -> Color {
|
||||
|
||||
Reference in New Issue
Block a user