Game Launcher: fix -fullscreen (resolves #9991)

Seems like this was missed as part of 29c82e308a.
This commit is contained in:
Charles Dang 2025-03-11 04:45:44 -04:00
parent 3350fc3c80
commit 0a37c2cda9
2 changed files with 2 additions and 3 deletions

View File

@ -155,7 +155,7 @@ game_launcher::game_launcher(const commandline_options& cmdline_opts)
if(cmdline_opts_.fps)
prefs::get().set_show_fps(true);
if(cmdline_opts_.fullscreen)
start_in_fullscreen_ = true;
prefs::get().set_fullscreen(true);
if(cmdline_opts_.load)
load_data_ = savegame::load_game_metadata{
savegame::save_index_class::default_saves_dir(), *cmdline_opts_.load};
@ -218,7 +218,7 @@ game_launcher::game_launcher(const commandline_options& cmdline_opts)
test_scenarios_ = cmdline_opts_.unit_test;
}
if(cmdline_opts_.windowed)
start_in_fullscreen_ = false;
prefs::get().set_fullscreen(false);
if(cmdline_opts_.with_replay && load_data_)
load_data_->show_replay = true;
if(cmdline_opts_.translation_percent)

View File

@ -129,7 +129,6 @@ private:
unit_test_result single_unit_test();
const commandline_options& cmdline_opts_;
bool start_in_fullscreen_ = false;
font::manager font_manager_;
const image::manager image_manager_;