mirror of
https://github.com/storytold/winit.git
synced 2026-11-29 01:35:59 +01:00
Use new fullscreen API in example
This commit is contained in:
1 parent
9693f7caa9
commit
b3ef9c8b22
1 file changed
+2
-2
@@ -1,7 +1,7 @@
|
||||
extern crate winit;
|
||||
|
||||
use std::io::{self, Write};
|
||||
use winit::{ControlFlow, Event, WindowEvent};
|
||||
use winit::{ControlFlow, Event, WindowEvent, FullScreenState};
|
||||
|
||||
fn main() {
|
||||
// enumerating monitors
|
||||
@@ -27,7 +27,7 @@ fn main() {
|
||||
|
||||
let _window = winit::WindowBuilder::new()
|
||||
.with_title("Hello world!")
|
||||
.with_fullscreen(monitor)
|
||||
.with_fullscreen(FullScreenState::Exclusive(monitor))
|
||||
.build(&events_loop)
|
||||
.unwrap();
|
||||
|
||||
|
||||
Reference in new issue
Block a user