From 5b90b847f1d1c816d6732d0234165cd7c8023c86 Mon Sep 17 00:00:00 2001 From: Bob Polis Date: Wed, 28 Oct 2020 17:58:47 +0100 Subject: [PATCH] adapted to new interface --- rects/RectSaver.cpp | 8 +------- skembo/Skembo.cpp | 8 +------- 2 files changed, 2 insertions(+), 14 deletions(-) diff --git a/rects/RectSaver.cpp b/rects/RectSaver.cpp index caaabd8..f3ba970 100644 --- a/rects/RectSaver.cpp +++ b/rects/RectSaver.cpp @@ -14,20 +14,14 @@ class RectSaver : public ScreensaverPlugin { RectSaver() = default; ~RectSaver() = default; - void setup(cairo_t* context, const cairo_rectangle_t& rect) override; - void draw_frame() override; int fps() const override; + void draw_frame() override; }; ScreensaverPlugin* create_instance() { return new RectSaver; } -void RectSaver::setup(cairo_t* context, const cairo_rectangle_t& rect) { - ScreensaverPlugin::setup(context, rect); - make_black(); -} - int RectSaver::fps() const { return 2; } diff --git a/skembo/Skembo.cpp b/skembo/Skembo.cpp index 27ba824..5310d93 100644 --- a/skembo/Skembo.cpp +++ b/skembo/Skembo.cpp @@ -14,9 +14,8 @@ class Skembo : public ScreensaverPlugin { Skembo() = default; ~Skembo() = 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 Skembo; } -void Skembo::setup(cairo_t* context, const cairo_rectangle_t& rect) { - ScreensaverPlugin::setup(context, rect); - make_black(); -} - int Skembo::fps() const { return 40; }