mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 13:37:44 +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:
parent
0cb937416b
commit
b12e5de047
3 changed files with 8 additions and 8 deletions
|
@ -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 };
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue