mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-05-13 08:26:56 +00:00
Fix #8692
This commit is contained in:
parent
d2b871da68
commit
3a46e2fe0b
2 changed files with 3 additions and 1 deletions
|
|
@ -119,6 +119,8 @@ Detailed list of changes
|
|||
|
||||
- Fix a segfault when using the :ac:`copy_ansi_to_clipboard` action (:iss:`8682`)
|
||||
|
||||
- Fix a crash when using linear easing curves for animations (:iss:`8692`)
|
||||
|
||||
0.42.1 [2025-05-17]
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
|
|
|
|||
|
|
@ -184,7 +184,7 @@ apply_easing_curve(const Animation *a, double val, monotonic_t duration) {
|
|||
animation_function *f = a->functions + idx;
|
||||
double interval_size = 1. / a->count, interval_start = idx * interval_size;
|
||||
double scaled_val = (val - interval_start) / interval_size;
|
||||
double ans = f->curve(&f->params, scaled_val, duration);
|
||||
double ans = f->curve(f->params, scaled_val, duration);
|
||||
return f->y_at_start + unit_value(ans) * f->y_size;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue