FlappyBug: Convert to try_create_default_icon

This commit is contained in:
Astraeus- 2021-12-18 11:42:50 +01:00 committed by Andreas Kling
commit 29d5fee07e
Notes: sideshowbarker 2024-07-17 22:38:09 +09:00

View file

@ -32,7 +32,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
auto window = TRY(GUI::Window::try_create());
window->resize(FlappyBug::Game::game_width, FlappyBug::Game::game_height);
auto app_icon = GUI::Icon::default_icon("app-flappybug");
auto app_icon = TRY(GUI::Icon::try_create_default_icon("app-flappybug"));
window->set_icon(app_icon.bitmap_for_size(16));
window->set_title("Flappy Bug");
window->set_double_buffering_enabled(false);