mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 11:57:35 +00:00
Pong: Convert to try_create_default_icon
This commit is contained in:
parent
07cf17f328
commit
bb214dd7e8
1 changed files with 1 additions and 1 deletions
|
@ -27,7 +27,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
||||||
|
|
||||||
auto window = TRY(GUI::Window::try_create());
|
auto window = TRY(GUI::Window::try_create());
|
||||||
window->resize(Pong::Game::game_width, Pong::Game::game_height);
|
window->resize(Pong::Game::game_width, Pong::Game::game_height);
|
||||||
auto app_icon = GUI::Icon::default_icon("app-pong");
|
auto app_icon = TRY(GUI::Icon::try_create_default_icon("app-pong"));
|
||||||
window->set_icon(app_icon.bitmap_for_size(16));
|
window->set_icon(app_icon.bitmap_for_size(16));
|
||||||
window->set_title("Pong");
|
window->set_title("Pong");
|
||||||
window->set_double_buffering_enabled(false);
|
window->set_double_buffering_enabled(false);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue