mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2025-01-26 03:36:32 +11:00
Fix imports in the multithreaded example
This commit is contained in:
parent
e21df5831e
commit
ab4d971c5e
2 changed files with 4 additions and 2 deletions
|
@ -7,7 +7,7 @@ fn main() {
|
||||||
use winit::{
|
use winit::{
|
||||||
event::{ElementState, Event, KeyboardInput, VirtualKeyCode, WindowEvent},
|
event::{ElementState, Event, KeyboardInput, VirtualKeyCode, WindowEvent},
|
||||||
event_loop::{ControlFlow, EventLoop},
|
event_loop::{ControlFlow, EventLoop},
|
||||||
window::{CursorIcon, WindowBuilder},
|
window::{CursorIcon, Fullscreen, WindowBuilder},
|
||||||
};
|
};
|
||||||
|
|
||||||
const WINDOW_COUNT: usize = 3;
|
const WINDOW_COUNT: usize = 3;
|
||||||
|
|
|
@ -500,7 +500,9 @@ pub unsafe fn create_window(
|
||||||
let () = msg_send![uiscreen, setCurrentMode: video_mode.video_mode.screen_mode];
|
let () = msg_send![uiscreen, setCurrentMode: video_mode.video_mode.screen_mode];
|
||||||
msg_send![window, setScreen:video_mode.monitor().ui_screen()]
|
msg_send![window, setScreen:video_mode.monitor().ui_screen()]
|
||||||
}
|
}
|
||||||
Some(Fullscreen::Borderless(ref monitor)) => msg_send![window, setScreen:monitor.ui_screen()],
|
Some(Fullscreen::Borderless(ref monitor)) => {
|
||||||
|
msg_send![window, setScreen:monitor.ui_screen()]
|
||||||
|
}
|
||||||
None => (),
|
None => (),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue