File tree 3 files changed +18
-9
lines changed
3 files changed +18
-9
lines changed Original file line number Diff line number Diff line change @@ -36,13 +36,13 @@ matrix:
36
36
os : osx
37
37
rust : stable
38
38
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
46
46
47
47
addons :
48
48
apt :
Original file line number Diff line number Diff line change @@ -205,7 +205,7 @@ impl Context {
205
205
let win = builder. build ( el) ?;
206
206
let context = unsafe {
207
207
let eagl_context = Context :: create_context ( version) ?;
208
- let view = win. uiview ( ) as ffi:: id ;
208
+ let view = win. ui_view ( ) as ffi:: id ;
209
209
let mut context = Context { eagl_context, view } ;
210
210
context. init_context ( & win) ;
211
211
context
@@ -221,7 +221,7 @@ impl Context {
221
221
size : dpi:: PhysicalSize ,
222
222
) -> Result < Self , CreationError > {
223
223
let wb = winit:: window:: WindowBuilder :: new ( )
224
- . with_visibility ( false )
224
+ . with_visible ( false )
225
225
. with_inner_size ( size. to_logical ( 1. ) ) ;
226
226
Self :: new_windowed ( wb, el, pf_reqs, gl_attr)
227
227
. map ( |( _window, context) | context)
Original file line number Diff line number Diff line change @@ -21,6 +21,15 @@ pub mod unix;
21
21
pub mod windows;
22
22
/// Platform-specific methods for desktop operating systems.
23
23
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
+ ) ) ]
24
33
pub use winit:: platform:: desktop:: * ;
25
34
}
26
35
You can’t perform that action at this time.
0 commit comments