Skip to content

Commit

Permalink
Fix toggling fullscreen with F11 initially. Closes #156
Browse files Browse the repository at this point in the history
  • Loading branch information
iceiix committed May 19, 2019
1 parent 381815c commit 9ceddc5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 9ceddc5

Please sign in to comment.