Remove useless hidpi_factor variable from main.rs

This commit is contained in:
Rekai Musuka 2020-07-13 22:32:45 -05:00
parent acf1b10e66
commit 28be6356f2
1 changed files with 0 additions and 5 deletions

View File

@ -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);
}