mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-23 01:41:59 -05:00
Snake+Minesweeper: Exit process when game window is closed.
This commit is contained in:
parent
57da00b731
commit
b3f7f5436a
2 changed files with 2 additions and 0 deletions
|
@ -13,6 +13,7 @@ int main(int argc, char** argv)
|
|||
GApplication app(argc, argv);
|
||||
|
||||
auto* window = new GWindow;
|
||||
window->set_should_exit_event_loop_on_close(true);
|
||||
window->set_resizable(false);
|
||||
window->set_title("Minesweeper");
|
||||
window->set_rect(100, 100, 139, 175);
|
||||
|
|
|
@ -12,6 +12,7 @@ int main(int argc, char** argv)
|
|||
GApplication app(argc, argv);
|
||||
|
||||
auto* window = new GWindow;
|
||||
window->set_should_exit_event_loop_on_close(true);
|
||||
window->set_double_buffering_enabled(false);
|
||||
window->set_title("Snake");
|
||||
window->set_rect(100, 100, 320, 320);
|
||||
|
|
Loading…
Reference in a new issue