setup() also clears rects list
Window resizing will call setup(), so it is now more cleanly resetting the module.
This commit is contained in:
parent
3549bd8b10
commit
43bccd373c
@ -155,4 +155,5 @@ void FadingRects::setup(cairo_t* context, const cairo_rectangle_t& rect) {
|
||||
ScreensaverPlugin::setup(context, rect);
|
||||
std::uniform_real_distribution<double> dist {0.0, 360.0};
|
||||
_hue = dist(_eng);
|
||||
_rects.clear();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user