mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-02-28 01:40:23 -05:00
feat: Calculate animation curve by time points rather than passed frames
This commit is contained in:
parent
9f229b3c48
commit
9d9a4356e3
6 changed files with 76 additions and 84 deletions
|
|
@ -227,8 +227,7 @@ struct dwl_animation {
|
|||
bool tagouting;
|
||||
bool begin_fade_in;
|
||||
bool tag_from_rule;
|
||||
unsigned int total_frames;
|
||||
unsigned int passed_frames;
|
||||
unsigned int time_started;
|
||||
unsigned int duration;
|
||||
struct wlr_box initial;
|
||||
struct wlr_box current;
|
||||
|
|
@ -240,8 +239,8 @@ struct dwl_opacity_animation {
|
|||
float current_opacity;
|
||||
float target_opacity;
|
||||
float initial_opacity;
|
||||
unsigned int total_frames;
|
||||
unsigned int passed_frames;
|
||||
unsigned int time_started;
|
||||
unsigned int duration;
|
||||
float current_border_color[4];
|
||||
float target_border_color[4];
|
||||
float initial_border_color[4];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue