Skip to content

Commit

Permalink
Add fullscreen option (#283)
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilipK committed Dec 26, 2022
1 parent e76c84b commit 0d973d1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/ui/uiapp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -350,8 +350,11 @@ pub fn run_sync() {
pub fn run_ui(args: Vec<String>) {
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()
Expand Down

0 comments on commit 0d973d1

Please sign in to comment.