From b3ef9c8b22d600877c6cf62247e75718b2abe70b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pedro=20C=C3=B4rte-Real?= Date: Tue, 29 Aug 2017 01:50:11 +0100 Subject: [PATCH] Use new fullscreen API in example --- examples/fullscreen.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/fullscreen.rs b/examples/fullscreen.rs index daeb68b6..2da143d1 100644 --- a/examples/fullscreen.rs +++ b/examples/fullscreen.rs @@ -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();