This commit is contained in:
Kovid Goyal 2025-05-29 08:17:45 +05:30
parent d2b871da68
commit 3a46e2fe0b
No known key found for this signature in database
GPG key ID: 06BC317B515ACE7C
2 changed files with 3 additions and 1 deletions

View file

@ -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]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

View file

@ -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;
}