start in BorderlessFullscreen instead of Fullscreen by default
this fixes a crash on some windows machines
This commit is contained in:
parent
17f44664e5
commit
36859f6bb6
|
@ -64,12 +64,12 @@ impl Plugin for OutFlyPlugin {
|
|||
}
|
||||
|
||||
fn setup(
|
||||
mut windows: Query<&mut Window, With<PrimaryWindow>>
|
||||
mut windows: Query<&mut Window, With<PrimaryWindow>>,
|
||||
) {
|
||||
for mut window in &mut windows {
|
||||
window.cursor.grab_mode = CursorGrabMode::Locked;
|
||||
window.cursor.visible = false;
|
||||
window.mode = WindowMode::Fullscreen;
|
||||
window.mode = WindowMode::BorderlessFullscreen;
|
||||
window.title = "OutFly".to_string();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue