summaryrefslogtreecommitdiff
path: root/Userland/Demos
diff options
context:
space:
mode:
authorCubic Love <7754483+cubiclove@users.noreply.github.com>2023-04-12 16:50:14 +0100
committerLinus Groh <mail@linusgroh.de>2023-04-12 19:34:27 +0200
commit3d101320211f804b8e14e0e3a80a88677e41c2f1 (patch)
treebc27b31d75b54ac44bca9fd99c0aa4da5e646257 /Userland/Demos
parentc3a5618dabd286637d0b8ebc1aaea42da81f81c4 (diff)
downloadserenity-3d101320211f804b8e14e0e3a80a88677e41c2f1.zip
Starfield: Rename starfield_window to starfield_widget
Linus says it should be a widget and not a window!
Diffstat (limited to 'Userland/Demos')
-rw-r--r--Userland/Demos/Starfield/Starfield.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/Userland/Demos/Starfield/Starfield.cpp b/Userland/Demos/Starfield/Starfield.cpp
index a7c1f95459..ebf6e6e5e5 100644
--- a/Userland/Demos/Starfield/Starfield.cpp
+++ b/Userland/Demos/Starfield/Starfield.cpp
@@ -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);