mirror of
https://github.com/djibux/BoilR.git
synced 2026-09-01 05:53:41 +02:00
Add fullscreen option (#283)
This commit is contained in:
+4
-1
@@ -350,8 +350,11 @@ pub fn run_sync() {
|
|||||||
pub fn run_ui(args: Vec<String>) {
|
pub fn run_ui(args: Vec<String>) {
|
||||||
let app = MyEguiApp::new();
|
let app = MyEguiApp::new();
|
||||||
let no_v_sync = args.contains(&"--no-vsync".to_string());
|
let no_v_sync = args.contains(&"--no-vsync".to_string());
|
||||||
|
let fullscreen = args.contains(&"--fullscreen".to_string());
|
||||||
let native_options = eframe::NativeOptions {
|
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()),
|
icon_data: Some(get_logo_icon()),
|
||||||
vsync: !no_v_sync,
|
vsync: !no_v_sync,
|
||||||
..Default::default()
|
..Default::default()
|
||||||
|
|||||||
Reference in New Issue
Block a user