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 {