setup() also clears rects list

Window resizing will call setup(), so it is now more cleanly
resetting the module.
This commit is contained in:
Bob Polis 2021-02-01 10:28:35 +01:00
parent 3549bd8b10
commit 43bccd373c

View File

@ -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();
}