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 @@ -207,7 +207,7 @@ impl Context {
207
207
let win = builder. build ( el) ?;
208
208
let context = unsafe {
209
209
let eagl_context = Context :: create_context ( version) ?;
210
- let view = win. uiview ( ) as ffi:: id ;
210
+ let view = win. ui_view ( ) as ffi:: id ;
211
211
let mut context = Context { eagl_context, view } ;
212
212
context. init_context ( & win) ;
213
213
context
@@ -223,7 +223,7 @@ impl Context {
223
223
size : dpi:: PhysicalSize ,
224
224
) -> Result < Self , CreationError > {
225
225
let wb = WindowBuilder :: new ( )
226
- . with_visibility ( false )
226
+ . with_visible ( false )
227
227
. with_inner_size ( size. to_logical ( 1. ) ) ;
228
228
Self :: new_windowed ( wb, el, pf_reqs, gl_attr)
229
229
. 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