Added Effect::start() and Effect::stop() to allow effects to reserve memory on start and free it afterwards.
This commit is contained in:
1 parent
a2fe1461ad
commit
a7d956209a
5 files changed
+19
No files matched your search
@@ -16,6 +16,8 @@ class Effect {
|
||||
void setWindow(Window win) {
|
||||
window = win;
|
||||
};
|
||||
virtual void start() {}
|
||||
virtual void stop() {}
|
||||
};
|
||||
|
||||
#endif
|
||||
@@ -10,6 +10,8 @@ class CycleEffect : public Effect {
|
||||
unsigned long effectSince = 0;
|
||||
public:
|
||||
void changeEffect();
|
||||
void start();
|
||||
void stop();
|
||||
|
||||
boolean can_be_shown_with_clock();
|
||||
boolean clock_as_mask();
|
||||
|
||||
Reference in new issue
Block a user