diff --git a/src/backend/winit.rs b/src/backend/winit.rs index 26a2efc..0e32b69 100644 --- a/src/backend/winit.rs +++ b/src/backend/winit.rs @@ -162,7 +162,6 @@ where let events_loop = EventLoop::new(); let winit_window = builder.build(&events_loop).chain_err(|| ErrorKind::InitFailed)?; - winit_window.set_cursor_visible(false); debug!(log, "Window created"); @@ -183,10 +182,9 @@ where }, ); - let scale_factor = window.window().scale_factor(); let size = Rc::new(RefCell::new(WindowSize { physical_size: window.window().inner_size(), // TODO: original code check if window is alive or not using inner_size().expect() - scale_factor, + scale_factor: window.window().scale_factor(), })); Ok((