mirror of
https://github.com/wesnoth/wesnoth
synced 2025-04-14 11:34:58 +00:00
Game Launcher: fix -fullscreen (resolves #9991)
Seems like this was missed as part of 29c82e308a
.
This commit is contained in:
parent
3350fc3c80
commit
0a37c2cda9
|
@ -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)
|
||||
|
|
|
@ -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_;
|
||||
|
|
Loading…
Reference in New Issue
Block a user