From 28be6356f2ae5640776114effb0ad7442adacf17 Mon Sep 17 00:00:00 2001 From: Rekai Musuka Date: Mon, 13 Jul 2020 22:32:45 -0500 Subject: [PATCH] Remove useless hidpi_factor variable from main.rs --- src/main.rs | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/main.rs b/src/main.rs index eb3a156..9acffec 100644 --- a/src/main.rs +++ b/src/main.rs @@ -19,7 +19,6 @@ fn main() { let mut input = WinitInputHelper::new(); let event_loop = EventLoop::new(); let window = init_window(&event_loop); - let mut hidpi_factor = window.scale_factor(); let mut pixels = init_pixels(&window); let rom_path = Path::new("./games/ibm_logo.ch8"); @@ -44,10 +43,6 @@ fn main() { return; } - if let Some(factor) = input.scale_factor_changed() { - hidpi_factor = factor; - }; - if let Some(size) = input.window_resized() { pixels.resize(size.width, size.height); }