Skip to content

Commit aee2ac6

Browse files
committed
Merge branch 'master' of github.com:rust-windowing/glutin into 0.22maj
Signed-off-by: Hal Gentz <zegentzy@protonmail.com>
2 parents a77c18c + 7b16eca commit aee2ac6

File tree

8 files changed

+19
-16
lines changed

8 files changed

+19
-16
lines changed

.travis.yml

+8-8
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,13 @@ matrix:
3636
os: osx
3737
rust: stable
3838

39-
# iOS
40-
- env: TARGET=x86_64-apple-ios
41-
os: osx
42-
rust: nightly
43-
- env: TARGET=x86_64-apple-ios
44-
os: osx
45-
rust: stable
39+
# # iOS
40+
# - env: TARGET=x86_64-apple-ios
41+
# os: osx
42+
# rust: nightly
43+
# - env: TARGET=x86_64-apple-ios
44+
# os: osx
45+
# rust: stable
4646

4747
addons:
4848
apt:
@@ -71,7 +71,7 @@ after_success:
7171
[ $TRAVIS_BRANCH = master ] &&
7272
[ $TRAVIS_PULL_REQUEST = false ] && {
7373
cd glutin
74-
for crate in ../glutin_*_sys; do
74+
for crate in ../glutin_*_sys; do
7575
cd "$crate"
7676
cargo publish --token ${CRATESIO_TOKEN_GENTZ}
7777
done

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Unreleased
22

3+
# Version 0.22.0-alpha1 (2019-06-21)
4+
5+
- Update winit dependency to 0.20.0-alpha1. See [winit's CHANGELOG](https://github.com/rust-windowing/winit/blob/master/CHANGELOG.md#0200-alpha-1) for more info.
6+
37
# Version 0.21.0-rc2 (2019-04-08)
48

59
- **Breaking**: Removed `DisplayLost` variant to `ContextError`.

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ A low-level library for OpenGL context creation, written in pure Rust.
88

99
```toml
1010
[dependencies]
11-
glutin = "0.21"
11+
glutin = "0.22.0-alpha1"
1212
```
1313

1414
## [Documentation](https://docs.rs/glutin)

glutin/Cargo.toml

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "glutin"
3-
version = "0.21.0"
3+
version = "0.22.0-alpha1"
44
authors = ["The glutin contributors", "Pierre Krieger <pierre.krieger1708@gmail.com>"]
55
description = "Cross-platform OpenGL context provider."
66
keywords = ["windowing", "opengl"]
@@ -18,8 +18,7 @@ serde = ["winit/serde"]
1818

1919
[dependencies]
2020
lazy_static = "1.3"
21-
#winit = "^0.19.1"
22-
winit = { git = "https://github.com/rust-windowing/winit.git", rev = "db794b9" }
21+
winit = "0.20.0-alpha1"
2322
log = "0.4"
2423

2524
[target.'cfg(target_os = "android")'.dependencies]

glutin/src/platform_impl/macos/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ impl Context {
6969
_ => (),
7070
}
7171

72-
let view = win.nsview() as id;
72+
let view = win.ns_view() as id;
7373

7474
let gl_profile = helpers::get_gl_profile(gl_attr, pf_reqs)?;
7575
let attributes = helpers::build_nsattributes(pf_reqs, gl_profile)?;

glutin/src/platform_impl/windows/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ impl Context {
186186
}
187187

188188
let wb = WindowBuilder::new()
189-
.with_visibility(false)
189+
.with_visible(false)
190190
.with_inner_size(size.to_logical(1.));
191191
Self::new_windowed(wb, &el, pf_reqs, gl_attr).map(|(win, context)| {
192192
match context {

glutin_examples/examples/raw_context.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ mod this_example {
3535
let mut wb = WindowBuilder::new().with_title("A fantastic window!");
3636

3737
if transparency {
38-
wb = wb.with_decorations(false).with_transparency(true);
38+
wb = wb.with_decorations(false).with_transparent(true);
3939
}
4040

4141
#[cfg(target_os = "linux")]

glutin_examples/examples/transparent.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ fn main() {
1111
let wb = WindowBuilder::new()
1212
.with_title("A transparent window!")
1313
.with_decorations(false)
14-
.with_transparency(true);
14+
.with_transparent(true);
1515

1616
let windowed_context =
1717
ContextBuilder::new().build_windowed(wb, &el).unwrap();

0 commit comments

Comments
 (0)