Add version() to each plugin
And display it in the screensaver tool with the -l option.
This commit is contained in:
1 parent
37b17704f3
commit
bb03204f1c
6 files changed
+28
-2
No files matched your search
@@ -40,6 +40,7 @@ class FadingRects : public ScreensaverPlugin {
|
||||
int fps() const override;
|
||||
void update () override;
|
||||
void render() override;
|
||||
std::string version() const override;
|
||||
|
||||
private:
|
||||
double _hue {0.0};
|
||||
@@ -53,6 +54,10 @@ ScreensaverPlugin* create_instance() {
|
||||
return new FadingRects;
|
||||
}
|
||||
|
||||
std::string FadingRects::version() const {
|
||||
return "1.1.0";
|
||||
}
|
||||
|
||||
int FadingRects::fps() const {
|
||||
return 20;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user