Skip to content

Commit f0946f5

Browse files
committed
Merge remote-tracking branch 'upstream/master' into 0.22maj
Signed-off-by: Hal Gentz <zegentzy@protonmail.com>
2 parents 088f8e4 + 3b7e5f8 commit f0946f5

File tree

3 files changed

+18
-9
lines changed

3 files changed

+18
-9
lines changed

.travis.yml

+7-7
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:

glutin/src/api/ios.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ impl Context {
207207
let win = builder.build(el)?;
208208
let context = unsafe {
209209
let eagl_context = Context::create_context(version)?;
210-
let view = win.uiview() as ffi::id;
210+
let view = win.ui_view() as ffi::id;
211211
let mut context = Context { eagl_context, view };
212212
context.init_context(&win);
213213
context
@@ -223,7 +223,7 @@ impl Context {
223223
size: dpi::PhysicalSize,
224224
) -> Result<Self, CreationError> {
225225
let wb = WindowBuilder::new()
226-
.with_visibility(false)
226+
.with_visible(false)
227227
.with_inner_size(size.to_logical(1.));
228228
Self::new_windowed(wb, el, pf_reqs, gl_attr)
229229
.map(|(_window, context)| context)

glutin/src/platform.rs

+9
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,15 @@ pub mod unix;
2121
pub mod windows;
2222
/// Platform-specific methods for desktop operating systems.
2323
pub mod desktop {
24+
#![cfg(any(
25+
target_os = "windows",
26+
target_os = "macos",
27+
target_os = "linux",
28+
target_os = "dragonfly",
29+
target_os = "freebsd",
30+
target_os = "netbsd",
31+
target_os = "openbsd",
32+
))]
2433
pub use winit::platform::desktop::*;
2534
}
2635

0 commit comments

Comments
 (0)