start in BorderlessFullscreen instead of Fullscreen by default

this fixes a crash on some windows machines
This commit is contained in:
yuni 2024-04-08 00:24:03 +02:00
parent 17f44664e5
commit 36859f6bb6

View file

@ -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();
}
}