diff options
author | Astatin <[email protected]> | 2024-09-14 23:49:32 +0900 |
---|---|---|
committer | Astatin <astatin@redacted> | 2024-09-14 23:49:32 +0900 |
commit | 7101d14f3bcc0af29b8d51b1f5d58689fee1a571 (patch) | |
tree | f0d24574e6ec3153a3f4a5969233946be43719a6 /src/display.rs | |
parent | 249921a2094d172e94543446e2af11dcba5075e8 (diff) |
Add keyboard support & start supporting serial communication (but tetris doesn't work in 2p)
Diffstat (limited to 'src/display.rs')
-rw-r--r-- | src/display.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/display.rs b/src/display.rs index 8db432f..7abf5b3 100644 --- a/src/display.rs +++ b/src/display.rs @@ -29,7 +29,7 @@ pub enum DisplayInterrupt { #[derive(Debug)] pub struct Display { - window: Window, + pub window: Window, framebuffer: [u32; 160 * 144], bg_buffer: [u8; 160 * 144], @@ -64,7 +64,8 @@ impl Display { Self { window: Window::new( "Gameboy Emulator", - 512, 461, + 512, + 461, /* 1200, 1080, */ WindowOptions::default(), ) |