mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 20:27: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:
parent
0cb937416b
commit
b12e5de047
3 changed files with 8 additions and 8 deletions
|
@ -346,7 +346,7 @@ void Window::start_minimize_animation()
|
|||
}
|
||||
|
||||
m_animation = Animation::create();
|
||||
m_animation->set_length(150);
|
||||
m_animation->set_duration(150);
|
||||
m_animation->on_update = [this](float progress, Gfx::Painter& painter, Screen& screen, Gfx::DisjointRectSet& flush_rects) {
|
||||
Gfx::PainterStateSaver saver(painter);
|
||||
painter.set_draw_op(Gfx::Painter::DrawOp::Invert);
|
||||
|
@ -369,7 +369,7 @@ void Window::start_minimize_animation()
|
|||
void Window::start_launch_animation(Gfx::IntRect const& launch_origin_rect)
|
||||
{
|
||||
m_animation = Animation::create();
|
||||
m_animation->set_length(150);
|
||||
m_animation->set_duration(150);
|
||||
m_animation->on_update = [this, launch_origin_rect](float progress, Gfx::Painter& painter, Screen& screen, Gfx::DisjointRectSet& flush_rects) {
|
||||
Gfx::PainterStateSaver saver(painter);
|
||||
painter.set_draw_op(Gfx::Painter::DrawOp::Invert);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue