mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 16:17:45 +00:00
VirGLDemo: Make a factory function for Demo and propagate errors
This removes a measly 1 FIXME :))
This commit is contained in:
parent
d4f74d6c48
commit
c4f68bde57
3 changed files with 13 additions and 4 deletions
|
@ -316,7 +316,8 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
|||
window->set_has_alpha_channel(false);
|
||||
window->set_alpha_hit_threshold(1);
|
||||
|
||||
auto demo = TRY(window->try_set_main_widget<Demo>());
|
||||
auto demo = TRY(Demo::create());
|
||||
window->set_main_widget(demo);
|
||||
|
||||
auto app_icon = GUI::Icon::default_icon("app-cube"sv);
|
||||
window->set_icon(app_icon.bitmap_for_size(16));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue