diff --git a/src/os/windows/mod.rs b/src/os/windows/mod.rs index 40dc29e..1d7a0b6 100644 --- a/src/os/windows/mod.rs +++ b/src/os/windows/mod.rs @@ -680,16 +680,15 @@ impl Window { let h = self.height as f32; // TODO: Needs to be fixed with resize support - mouse_handler::get_pos(mode, self.mouse.x, self.mouse.y, s, w * s, h * s) + mouse_handler::get_pos(mode, self.mouse.x, self.mouse.y, s, w, h) } pub fn get_unscaled_mouse_pos(&self, mode: MouseMode) -> Option<(f32, f32)> { - let s = self.scale_factor as f32; let w = self.width as f32; let h = self.height as f32; // TODO: Needs to be fixed with resize support - mouse_handler::get_pos(mode, self.mouse.x, self.mouse.y, 1.0, w * s, h * s) + mouse_handler::get_pos(mode, self.mouse.x, self.mouse.y, 1.0, w, h) } pub fn get_mouse_down(&self, button: MouseButton) -> bool {