mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-11 17:00:37 +00:00
Pong: Convert to try_create_default_icon
This commit is contained in:
parent
07cf17f328
commit
bb214dd7e8
Notes:
sideshowbarker
2024-07-17 22:37:44 +09:00
Author: https://github.com/Astraeus- Commit: https://github.com/SerenityOS/serenity/commit/bb214dd7e8c Pull-request: https://github.com/SerenityOS/serenity/pull/11293
1 changed files with 1 additions and 1 deletions
|
@ -27,7 +27,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
|||
|
||||
auto window = TRY(GUI::Window::try_create());
|
||||
window->resize(Pong::Game::game_width, Pong::Game::game_height);
|
||||
auto app_icon = GUI::Icon::default_icon("app-pong");
|
||||
auto app_icon = TRY(GUI::Icon::try_create_default_icon("app-pong"));
|
||||
window->set_icon(app_icon.bitmap_for_size(16));
|
||||
window->set_title("Pong");
|
||||
window->set_double_buffering_enabled(false);
|
||||
|
|
Loading…
Reference in a new issue