From 0d973d1042ac99e926ca8579adc1220371eda9a5 Mon Sep 17 00:00:00 2001 From: Philip Kristoffersen Date: Mon, 26 Dec 2022 15:12:15 +0100 Subject: [PATCH] Add fullscreen option (#283) --- src/ui/uiapp.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/ui/uiapp.rs b/src/ui/uiapp.rs index 9c3f430..ba6f919 100644 --- a/src/ui/uiapp.rs +++ b/src/ui/uiapp.rs @@ -350,8 +350,11 @@ pub fn run_sync() { pub fn run_ui(args: Vec) { let app = MyEguiApp::new(); let no_v_sync = args.contains(&"--no-vsync".to_string()); + let fullscreen = args.contains(&"--fullscreen".to_string()); let native_options = eframe::NativeOptions { - initial_window_size: Some(egui::Vec2 { x: 1280., y: 800. }), + fullscreen, + maximized:true, + //initial_window_size: Some(egui::Vec2 { x: 1280., y: 800. }), icon_data: Some(get_logo_icon()), vsync: !no_v_sync, ..Default::default()