mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2024-12-23 22:01:31 +11:00
Use new fullscreen API in example
This commit is contained in:
parent
9693f7caa9
commit
b3ef9c8b22
|
@ -1,7 +1,7 @@
|
||||||
extern crate winit;
|
extern crate winit;
|
||||||
|
|
||||||
use std::io::{self, Write};
|
use std::io::{self, Write};
|
||||||
use winit::{ControlFlow, Event, WindowEvent};
|
use winit::{ControlFlow, Event, WindowEvent, FullScreenState};
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
// enumerating monitors
|
// enumerating monitors
|
||||||
|
@ -27,7 +27,7 @@ fn main() {
|
||||||
|
|
||||||
let _window = winit::WindowBuilder::new()
|
let _window = winit::WindowBuilder::new()
|
||||||
.with_title("Hello world!")
|
.with_title("Hello world!")
|
||||||
.with_fullscreen(monitor)
|
.with_fullscreen(FullScreenState::Exclusive(monitor))
|
||||||
.build(&events_loop)
|
.build(&events_loop)
|
||||||
.unwrap();
|
.unwrap();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue