Skip to content

Commit

Permalink
FlappyBug: Convert to try_create_default_icon
Browse files Browse the repository at this point in the history
  • Loading branch information
Astraeus- authored and awesomekling committed Dec 18, 2021
1 parent ff3272b commit 29d5fee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Userland/Games/FlappyBug/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 29d5fee

Please sign in to comment.