Fix toggling fullscreen with F11 initially. Closes #156

This commit is contained in:
ice_iix 2019-05-19 11:43:28 -07:00
parent 381815ce22
commit 9ceddc5057
1 changed files with 1 additions and 1 deletions

View File

@ -483,7 +483,7 @@ fn handle_window_event(window: &mut glutin::WindowedContext,
game.console.lock().unwrap().toggle();
},
(ElementState::Pressed, Some(VirtualKeyCode::F11)) => {
if game.is_fullscreen {
if !game.is_fullscreen {
window.set_fullscreen(Some(window.get_current_monitor()));
} else {
window.set_fullscreen(None);