mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 04:17:35 +00:00
Games: Add fullscreen option
This commit is contained in:
parent
13c66ebf12
commit
64edf6913f
13 changed files with 66 additions and 0 deletions
|
@ -74,6 +74,13 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
|||
game_menu->add_action(*chord_toggler_action);
|
||||
game_menu->add_separator();
|
||||
|
||||
// Put Fullscreen in Game rather than View
|
||||
// When in beginner mode it can only show 3 menus. Adding View makes 4
|
||||
game_menu->add_action(GUI::CommonActions::make_fullscreen_action([&](auto&) {
|
||||
window->set_fullscreen(!window->is_fullscreen());
|
||||
}));
|
||||
game_menu->add_separator();
|
||||
|
||||
game_menu->add_action(GUI::CommonActions::make_quit_action([](auto&) {
|
||||
GUI::Application::the()->quit();
|
||||
}));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue