From df5a1c83d8c5d680e1bd4ef1c6793db964ebebea Mon Sep 17 00:00:00 2001 From: Astatin Date: Fri, 7 Mar 2025 22:01:12 +0900 Subject: Add gamepad recorder & gamepad replay --- src/display.rs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'src/display.rs') diff --git a/src/display.rs b/src/display.rs index b4172f7..ef98835 100644 --- a/src/display.rs +++ b/src/display.rs @@ -2,7 +2,7 @@ use crate::consts::DISPLAY_UPDATE_SLEEP_TIME_MICROS; use crate::state::MemError; -use minifb::{Window, WindowOptions}; +use minifb::{Window, WindowOptions, ScaleMode, Scale}; use std::time::SystemTime; const COLORS: [u32; 4] = [0x00e0f8d0, 0x0088c070, 0x346856, 0x00081820]; @@ -68,7 +68,13 @@ impl Display { 512, 461, /*1200, 1080,*/ /* 160,144, */ - WindowOptions::default(), + WindowOptions { + // borderless: true, + // resize: true, + // scale_mode: ScaleMode::AspectRatioStretch, + // scale: Scale::FitScreen, + ..WindowOptions::default() + }, ) .unwrap(), framebuffer: [0; 160 * 144], -- cgit v1.2.3-70-g09d2