diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/android/mod.rs | 6 | ||||
-rw-r--r-- | src/osx/mod.rs | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/android/mod.rs b/src/android/mod.rs index 341187f..cdd5293 100644 --- a/src/android/mod.rs +++ b/src/android/mod.rs @@ -222,13 +222,13 @@ impl Window { loop { match self.event_rx.try_recv() { Ok(event) => match event { - android_glue::EventDown => { + android_glue::Event::EventDown => { events.push(MouseInput(Pressed, LeftMouseButton)); }, - android_glue::EventUp => { + android_glue::Event::EventUp => { events.push(MouseInput(Released, LeftMouseButton)); }, - android_glue::EventMove(x, y) => { + android_glue::Event::EventMove(x, y) => { events.push(MouseMoved((x as int, y as int))); }, }, diff --git a/src/osx/mod.rs b/src/osx/mod.rs index a8cc3ac..fbdedfd 100644 --- a/src/osx/mod.rs +++ b/src/osx/mod.rs @@ -233,7 +233,7 @@ impl Window { context.setView_(view); if vsync { let value = 1; - context.setValues_forParameter_(&value, NSOpenGLCPSwapInterval); + context.setValues_forParameter_(&value, NSOpenGLContextParameter::NSOpenGLCPSwapInterval); } Some(context) } |