1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 14:37:46 +00:00

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
parent ff3272b60d
commit 29d5fee07e

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);