From 9e1bce7c666b70fa52f0c3411f163bc7792b9619 Mon Sep 17 00:00:00 2001 From: Sergey Smirnykh Date: Sat, 21 Mar 2020 19:27:54 +0700 Subject: [PATCH] Unhide cursor for now --- src/backend/winit.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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((