diff options
author | Andreas Kling <kling@serenityos.org> | 2020-11-10 14:25:45 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-11-10 14:32:45 +0100 |
commit | 51e7c6e348e2025994e3d93ea66da04a09b39e63 (patch) | |
tree | c98394832ee7b0504350980996a91442eef0f67f /Games/Breakout/main.cpp | |
parent | 8c88bf31ed5cd95e7bb49138b48f029892b162c8 (diff) | |
download | serenity-51e7c6e348e2025994e3d93ea66da04a09b39e63.zip |
Breakout: Set the window icon
Diffstat (limited to 'Games/Breakout/main.cpp')
-rw-r--r-- | Games/Breakout/main.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Games/Breakout/main.cpp b/Games/Breakout/main.cpp index 9d88cac94d..a72ee7b05c 100644 --- a/Games/Breakout/main.cpp +++ b/Games/Breakout/main.cpp @@ -26,13 +26,17 @@ #include "Game.h" #include <LibGUI/Application.h> +#include <LibGUI/Icon.h> #include <LibGUI/Window.h> +#include <LibGfx/Bitmap.h> int main(int argc, char** argv) { auto app = GUI::Application::construct(argc, argv); auto window = GUI::Window::construct(); window->resize(Breakout::Game::game_width, Breakout::Game::game_height); + auto app_icon = GUI::Icon::default_icon("app-breakout"); + window->set_icon(app_icon.bitmap_for_size(16)); window->set_title("Breakout"); window->set_double_buffering_enabled(false); window->set_main_widget<Breakout::Game>(); |