Pong: Convert to try_create_default_icon

This commit is contained in:
Astraeus- 2021-12-18 11:55:04 +01:00 committed by Andreas Kling
parent 07cf17f328
commit bb214dd7e8
Notes: sideshowbarker 2024-07-17 22:37:44 +09:00

View file

@ -27,7 +27,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
auto window = TRY(GUI::Window::try_create());
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_title("Pong");
window->set_double_buffering_enabled(false);