Fix toggling fullscreen with F11 initially. Closes #156
This commit is contained in:
parent
381815ce22
commit
9ceddc5057
|
@ -483,7 +483,7 @@ fn handle_window_event(window: &mut glutin::WindowedContext,
|
||||||
game.console.lock().unwrap().toggle();
|
game.console.lock().unwrap().toggle();
|
||||||
},
|
},
|
||||||
(ElementState::Pressed, Some(VirtualKeyCode::F11)) => {
|
(ElementState::Pressed, Some(VirtualKeyCode::F11)) => {
|
||||||
if game.is_fullscreen {
|
if !game.is_fullscreen {
|
||||||
window.set_fullscreen(Some(window.get_current_monitor()));
|
window.set_fullscreen(Some(window.get_current_monitor()));
|
||||||
} else {
|
} else {
|
||||||
window.set_fullscreen(None);
|
window.set_fullscreen(None);
|
||||||
|
|
Loading…
Reference in New Issue