From 36859f6bb6cea90129da9628067cf145d638c910 Mon Sep 17 00:00:00 2001 From: hut Date: Mon, 8 Apr 2024 00:24:03 +0200 Subject: [PATCH] start in BorderlessFullscreen instead of Fullscreen by default this fixes a crash on some windows machines --- src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index 4980190..b45bc96 100644 --- a/src/main.rs +++ b/src/main.rs @@ -64,12 +64,12 @@ impl Plugin for OutFlyPlugin { } fn setup( - mut windows: Query<&mut Window, With> + mut windows: Query<&mut Window, With>, ) { 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(); } }