summaryrefslogtreecommitdiff
path: root/Userland/Games/MasterWord/main.cpp
diff options
context:
space:
mode:
authorthankyouverycool <66646555+thankyouverycool@users.noreply.github.com>2023-04-16 18:35:23 -0400
committerAndreas Kling <kling@serenityos.org>2023-04-17 20:31:12 +0200
commitb8d88f33cf64f6ac5bcd9964a16526904cb4a86d (patch)
treeb1d9fe5790c74d84ef5abdb26c432762ea608a5c /Userland/Games/MasterWord/main.cpp
parent7b05bf1c2016df1b0c23014e298328c23a623bc1 (diff)
downloadserenity-b8d88f33cf64f6ac5bcd9964a16526904cb4a86d.zip
MasterWord: Set icon before showing window
Diffstat (limited to 'Userland/Games/MasterWord/main.cpp')
-rw-r--r--Userland/Games/MasterWord/main.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/Userland/Games/MasterWord/main.cpp b/Userland/Games/MasterWord/main.cpp
index 4e0edf5111..970a497c0b 100644
--- a/Userland/Games/MasterWord/main.cpp
+++ b/Userland/Games/MasterWord/main.cpp
@@ -41,7 +41,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
auto app_icon = TRY(GUI::Icon::try_create_default_icon("app-masterword"sv));
auto window = TRY(GUI::Window::try_create());
-
+ window->set_icon(app_icon.bitmap_for_size(16));
window->set_double_buffering_enabled(false);
window->set_title("MasterWord");
window->set_resizable(false);
@@ -153,7 +153,5 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
window->show();
- window->set_icon(app_icon.bitmap_for_size(16));
-
return app->exec();
}