Remove direct libscnumerics dependency
And use random_between() function
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
LDLIBS := -lcairo -lscscreensaver -lscnumerics -lsccolor
|
||||
LDLIBS := -lcairo -lscscreensaver -lsccolor
|
||||
UNAME_S := $(shell uname -s)
|
||||
PROJ := $(shell basename $$(pwd))
|
||||
PLUGIN := $(PROJ).saver
|
||||
|
||||
Reference in New Issue
Block a user