adapted to new interface

This commit is contained in:
Bob Polis 2020-10-29 09:21:12 +01:00
parent 748ab7efac
commit eefb2c06c6

View File

@ -14,9 +14,8 @@ class Huey : public ScreensaverPlugin {
Huey() = default;
~Huey() = default;
void setup(cairo_t* context, const cairo_rectangle_t& rect) override;
void draw_frame() override;
int fps() const override;
void draw_frame() override;
private:
double _hue {0};
@ -26,11 +25,6 @@ ScreensaverPlugin* create_instance() {
return new Huey;
}
void Huey::setup(cairo_t* context, const cairo_rectangle_t& rect) {
ScreensaverPlugin::setup(context, rect);
make_black();
}
int Huey::fps() const {
return 40;
}