mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-26 09:30:24 +00:00
Breakout: Convert to try_create_default_icon
This commit is contained in:
parent
e122502f70
commit
38f47a79d0
Notes:
sideshowbarker
2024-07-17 22:38:21 +09:00
Author: https://github.com/Astraeus- Commit: https://github.com/SerenityOS/serenity/commit/38f47a79d09 Pull-request: https://github.com/SerenityOS/serenity/pull/11293
1 changed files with 1 additions and 1 deletions
|
@ -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>());
|
||||
|
|
Loading…
Reference in a new issue