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:
parent
ff3272b60d
commit
29d5fee07e
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue