Remove useless hidpi_factor variable from main.rs
This commit is contained in:
parent
acf1b10e66
commit
28be6356f2
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue