mirror of
https://github.com/SerenityOS/serenity
synced 2024-09-06 17:06:31 +00:00
Starfield: Rename starfield_window to starfield_widget
Linus says it should be a widget and not a window!
This commit is contained in:
parent
c3a5618dab
commit
3d10132021
|
@ -167,15 +167,15 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
|||
|
||||
auto window = TRY(Desktop::Screensaver::create_window("Starfield"sv, "app-starfield"sv));
|
||||
|
||||
auto starfield_window = TRY(window->set_main_widget<Starfield>(refresh_rate));
|
||||
starfield_window->set_fill_with_background_color(false);
|
||||
starfield_window->set_override_cursor(Gfx::StandardCursor::Hidden);
|
||||
starfield_window->update();
|
||||
auto starfield_widget = TRY(window->set_main_widget<Starfield>(refresh_rate));
|
||||
starfield_widget->set_fill_with_background_color(false);
|
||||
starfield_widget->set_override_cursor(Gfx::StandardCursor::Hidden);
|
||||
starfield_widget->update();
|
||||
window->show();
|
||||
|
||||
TRY(starfield_window->create_stars(window->width(), window->height(), star_count));
|
||||
starfield_window->set_speed(speed);
|
||||
starfield_window->update();
|
||||
TRY(starfield_widget->create_stars(window->width(), window->height(), star_count));
|
||||
starfield_widget->set_speed(speed);
|
||||
starfield_widget->update();
|
||||
|
||||
window->move_to_front();
|
||||
window->set_cursor(Gfx::StandardCursor::Hidden);
|
||||
|
|
Loading…
Reference in a new issue