diff options
-rw-r--r-- | Cargo.toml | 2 | ||||
-rw-r--r-- | src/cocoa/mod.rs | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -1,7 +1,7 @@ [package] name = "glutin" -version = "0.0.16" +version = "0.0.18" authors = ["tomaka <pierre.krieger1708@gmail.com>"] description = "Cross-plaform OpenGL context provider." keywords = ["windowing", "opengl"] diff --git a/src/cocoa/mod.rs b/src/cocoa/mod.rs index a30465e..c26510c 100644 --- a/src/cocoa/mod.rs +++ b/src/cocoa/mod.rs @@ -391,7 +391,7 @@ impl Window { for i in (0..count) { let screen = msg_send![screens, objectAtIndex:i as NSUInteger]; let device_description = NSScreen::deviceDescription(screen); - let value = msg_send![device_description, objectForKey:*key]; + let value: id = msg_send![device_description, objectForKey:*key]; if value != nil { let screen_number: NSUInteger = msg_send![value, unsignedIntegerValue]; if screen_number as u32 == native_id { |