1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 03:37:45 +00:00

WindowServer: Change animation time to duration

The time interval for animations is most often described as `duration`
in animation contexts and the `WindowServer::Animation` class
should reflect that.
This commit is contained in:
Erik Sommer 2021-06-28 20:38:44 +02:00 committed by Andreas Kling
parent 0cb937416b
commit b12e5de047
3 changed files with 8 additions and 8 deletions

View file

@ -29,8 +29,8 @@ public:
void start();
void stop();
void set_length(int length_in_ms);
int length() const { return m_length; }
void set_duration(int duration_in_ms);
int duration() const { return m_duration; }
void update(Badge<Compositor>, Gfx::Painter&, Screen&, Gfx::DisjointRectSet& flush_rects);
@ -41,7 +41,7 @@ private:
Animation();
Core::ElapsedTimer m_timer;
int m_length { 0 };
int m_duration { 0 };
bool m_running { false };
};