From 117069ef9023665085564c4c20a9525c9e139de2 Mon Sep 17 00:00:00 2001 From: Richard Lettich Date: Sun, 27 Mar 2016 14:39:20 -0400 Subject: Changed MouseMoved((i32, i32)) to MouseMoved(i32, i32), breaking change --- src/api/cocoa/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/api/cocoa') diff --git a/src/api/cocoa/mod.rs b/src/api/cocoa/mod.rs index e935805..da7c1ec 100644 --- a/src/api/cocoa/mod.rs +++ b/src/api/cocoa/mod.rs @@ -848,8 +848,8 @@ unsafe fn NSEventToEvent(window: &Window, nsevent: id) -> Option { let view_rect = NSView::frame(*window.view); let scale_factor = window.hidpi_factor(); - Some(MouseMoved(((scale_factor * view_point.x as f32) as i32, - (scale_factor * (view_rect.size.height - view_point.y) as f32) as i32))) + Some(MouseMoved((scale_factor * view_point.x as f32) as i32, + (scale_factor * (view_rect.size.height - view_point.y) as f32) as i32)) }, NSKeyDown => { let mut events = VecDeque::new(); -- cgit v1.2.3