mirror of
https://github.com/RGBCube/serenity
synced 2025-07-10 05:47:34 +00:00
Breakout: Set the window icon
This commit is contained in:
parent
8c88bf31ed
commit
51e7c6e348
1 changed files with 4 additions and 0 deletions
|
@ -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>();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue