From a32f7f2ec5750e8fa7ac63b5a3ae5ef34cd27ea9 Mon Sep 17 00:00:00 2001 From: Paul Rouget Date: Fri, 3 Aug 2018 04:26:30 +0800 Subject: [PATCH] Update cocoa and core-graphics (#608) * Update cocoa and core-graphics * Release winit 0.17.0 * Updated date / README version --- CHANGELOG.md | 5 ++++- Cargo.toml | 6 +++--- README.md | 2 +- src/platform/macos/ffi.rs | 2 +- src/platform/macos/util.rs | 2 +- src/platform/macos/view.rs | 2 +- 6 files changed, 11 insertions(+), 8 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 315cfd37..500eb1d4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,9 @@ # Unreleased -- Fixed thread-safety issues in several `Window` functions on Windows. +# Version 0.17.0 (2018-08-02) + +- Cocoa and core-graphics updates. +- Fixed thread-safety issues in several `Window` functions on Windows. - On MacOS, the key state for modifiers key events is now properly set. - On iOS, the view is now set correctly. This makes it possible to render things (instead of being stuck on a black screen), and touch events work again. - Added NetBSD support. diff --git a/Cargo.toml b/Cargo.toml index 00b30515..0a6600cb 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "winit" -version = "0.16.2" +version = "0.17.0" authors = ["The winit contributors, Pierre Krieger "] description = "Cross-platform window creation library." keywords = ["windowing"] @@ -30,9 +30,9 @@ objc = "0.2.3" [target.'cfg(target_os = "macos")'.dependencies] objc = "0.2.3" -cocoa = "0.15" +cocoa = "0.17" core-foundation = "0.6" -core-graphics = "0.14" +core-graphics = "0.16" [target.'cfg(target_os = "windows")'.dependencies.winapi] version = "0.3.5" diff --git a/README.md b/README.md index 05b69b6d..dc517b13 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ ```toml [dependencies] -winit = "0.16" +winit = "0.17" ``` ## [Documentation](https://docs.rs/winit) diff --git a/src/platform/macos/ffi.rs b/src/platform/macos/ffi.rs index ef6eb7d6..31c9ed14 100644 --- a/src/platform/macos/ffi.rs +++ b/src/platform/macos/ffi.rs @@ -2,7 +2,7 @@ #![allow(dead_code, non_snake_case, non_upper_case_globals)] -use cocoa::base::{class, id}; +use cocoa::base::id; use cocoa::foundation::{NSInteger, NSUInteger}; use objc; diff --git a/src/platform/macos/util.rs b/src/platform/macos/util.rs index a9d8be06..2e5d6b49 100644 --- a/src/platform/macos/util.rs +++ b/src/platform/macos/util.rs @@ -1,5 +1,5 @@ use cocoa::appkit::NSWindowStyleMask; -use cocoa::base::{class, id, nil}; +use cocoa::base::{id, nil}; use cocoa::foundation::{NSRect, NSUInteger}; use core_graphics::display::CGDisplay; diff --git a/src/platform/macos/view.rs b/src/platform/macos/view.rs index 9fd23969..5a4b54d6 100644 --- a/src/platform/macos/view.rs +++ b/src/platform/macos/view.rs @@ -7,7 +7,7 @@ use std::collections::VecDeque; use std::os::raw::*; use std::sync::Weak; -use cocoa::base::{class, id, nil}; +use cocoa::base::{id, nil}; use cocoa::appkit::{NSEvent, NSView, NSWindow}; use cocoa::foundation::{NSPoint, NSRect, NSSize, NSString, NSUInteger}; use objc::declare::ClassDecl;