From 51e7c6e348e2025994e3d93ea66da04a09b39e63 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Tue, 10 Nov 2020 14:25:45 +0100 Subject: [PATCH] Breakout: Set the window icon --- Games/Breakout/main.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Games/Breakout/main.cpp b/Games/Breakout/main.cpp index 9d88cac94d8..a72ee7b05c7 100644 --- a/Games/Breakout/main.cpp +++ b/Games/Breakout/main.cpp @@ -26,13 +26,17 @@ #include "Game.h" #include +#include #include +#include 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();