From e2f1f13ba2a240c77e6f440402d8be672ba2d823 Mon Sep 17 00:00:00 2001 From: Alex Janka Date: Wed, 8 Mar 2023 15:26:32 +1100 Subject: [PATCH] scaled --- gb-vst/src/ui.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/gb-vst/src/ui.rs b/gb-vst/src/ui.rs index 9d9ebe8..750b45d 100644 --- a/gb-vst/src/ui.rs +++ b/gb-vst/src/ui.rs @@ -30,6 +30,8 @@ impl Emulator { } } +const EXTRA_SCALE: usize = 3; + impl Editor for Emulator { fn spawn( &self, @@ -42,7 +44,7 @@ impl Editor for Emulator { &parent, WindowOpenOptions { title: String::from("gb-emu"), - size: Size::new(WIDTH as f64, HEIGHT as f64), + size: Size::new((WIDTH * EXTRA_SCALE) as f64, (HEIGHT * EXTRA_SCALE) as f64), scale: baseview::WindowScalePolicy::SystemScaleFactor, gl_config: None, }, @@ -55,7 +57,7 @@ impl Editor for Emulator { } fn size(&self) -> (u32, u32) { - (WIDTH as u32, HEIGHT as u32) + ((WIDTH * EXTRA_SCALE) as u32, (HEIGHT * EXTRA_SCALE) as u32) } fn set_scale_factor(&self, _factor: f32) -> bool {