Remove direct libscnumerics dependency

And use random_between() function
This commit is contained in:
2025-10-27 11:36:20 +01:00
parent 62b10ca8d0
commit f7080fb83d
2 changed files with 2 additions and 3 deletions

View File

@@ -2,7 +2,6 @@
#include <cairo/cairo.h>
#include <libscscreensaver.hpp>
#include <libsccolor.hpp>
#include <libscnumerics.hpp>
#include <vector>
#include <algorithm>
@@ -153,6 +152,6 @@ Color FadingRects::next_color() {
void FadingRects::setup(cairo_t* context, const cairo_rectangle_t& rect) {
ScreensaverPlugin::setup(context, rect);
_hue = sc::random::double_between(0.0, 360.0);
_hue = random_between(0.0, 360.0);
_rects.clear();
}