aboutsummaryrefslogtreecommitdiffstats
path: root/src/api/cocoa
diff options
context:
space:
mode:
authortomaka <pierre.krieger1708@gmail.com>2016-03-27 21:40:11 +0200
committertomaka <pierre.krieger1708@gmail.com>2016-03-27 21:40:11 +0200
commit89dd63b9ceac72a7ca274724d2b81033ddb5d4ed (patch)
tree3cb9607c207560325129c186942ded4c79d227ca /src/api/cocoa
parent8ae2df68e19ca71453af5e11de9ca807ef7adcb4 (diff)
parent117069ef9023665085564c4c20a9525c9e139de2 (diff)
downloadglutin-89dd63b9ceac72a7ca274724d2b81033ddb5d4ed.tar.gz
glutin-89dd63b9ceac72a7ca274724d2b81033ddb5d4ed.zip
Merge pull request #752 from RichardlL/master
Changed MouseMoved((i32, i32)) to MouseMoved(i32, i32), breaking change
Diffstat (limited to 'src/api/cocoa')
-rw-r--r--src/api/cocoa/mod.rs4
1 files changed, 2 insertions, 2 deletions
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<Event> {
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();