[cln] Cleanup and fixes

This commit is contained in:
2024-02-19 09:11:06 +05:30
parent a7d55cb2b8
commit ff8fa4fcd3
2 changed files with 1 additions and 4 deletions

View File

@@ -35,9 +35,6 @@ impl GraphicsProcessor {
let mut fb = self.frame_buffer.borrow_mut(); let mut fb = self.frame_buffer.borrow_mut();
fb.copy_from_slice(memory_slice); fb.copy_from_slice(memory_slice);
} }
pub fn get_framebuffer(&self) -> Box<[u8; DEVICE_FRAMEBUFFER_SIZE]> {
self.frame_buffer.borrow().clone()
}
} }
#[cfg(test)] #[cfg(test)]

View File

@@ -25,7 +25,7 @@ fn main() -> EmulatorResult<()> {
let mut cpu = Cpu::new(&mmu,&program_counter); let mut cpu = Cpu::new(&mmu,&program_counter);
for i in 0..1{ for i in 0..1{
cpu.cycle(); cpu.cycle()?;
} }
// let sdl_context = sdl2::init().unwrap(); // let sdl_context = sdl2::init().unwrap();