Skip to content

Commit

Permalink
Update cocoa and core-graphics (#608)
Browse files Browse the repository at this point in the history
* Update cocoa and core-graphics

* Release winit 0.17.0

* Updated date / README version
  • Loading branch information
paulrouget authored and francesca64 committed Aug 2, 2018
1 parent e8e9fa2 commit a32f7f2
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 8 deletions.
5 changes: 4 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "winit"
version = "0.16.2"
version = "0.17.0"
authors = ["The winit contributors, Pierre Krieger <[email protected]>"]
description = "Cross-platform window creation library."
keywords = ["windowing"]
Expand Down Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

```toml
[dependencies]
winit = "0.16"
winit = "0.17"
```

## [Documentation](https://docs.rs/winit)
Expand Down
2 changes: 1 addition & 1 deletion src/platform/macos/ffi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
2 changes: 1 addition & 1 deletion src/platform/macos/util.rs
Original file line number Diff line number Diff line change
@@ -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;

Expand Down
2 changes: 1 addition & 1 deletion src/platform/macos/view.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit a32f7f2

Please sign in to comment.