Breakout: Convert to try_create_default_icon

This commit is contained in:
Astraeus- 2021-12-18 11:37:39 +01:00 committed by Andreas Kling
parent e122502f70
commit 38f47a79d0
Notes: sideshowbarker 2024-07-17 22:38:21 +09:00

View file

@ -31,7 +31,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
window->set_double_buffering_enabled(false);
window->set_title("Breakout");
auto app_icon = GUI::Icon::default_icon("app-breakout");
auto app_icon = TRY(GUI::Icon::try_create_default_icon("app-breakout"));
window->set_icon(app_icon.bitmap_for_size(16));
auto game = TRY(window->try_set_main_widget<Breakout::Game>());