Skip to content

Commit

Permalink
fix build error in linux ci
Browse files Browse the repository at this point in the history
  • Loading branch information
jinhwanlazy committed Oct 27, 2024
1 parent 261dd50 commit f9368a9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kitty/cursor_trail.c
Original file line number Diff line number Diff line change
Expand Up @@ -128,10 +128,10 @@ update_cursor_trail_opacity(CursorTrail *ct, Window *w, monotonic_t now) {
if (cursor_trail_always_visible) {
ct->opacity = 1.0f;
} else if (WD.screen->modes.mDECTCEM) {
ct->opacity += monotonic_t_to_s_double(now - ct->updated_at) / OPT(cursor_trail_decay_slow);
ct->opacity += (float)monotonic_t_to_s_double(now - ct->updated_at) / OPT(cursor_trail_decay_slow);
ct->opacity = fminf(ct->opacity, 1.0f);
} else {
ct->opacity -= monotonic_t_to_s_double(now - ct->updated_at) / OPT(cursor_trail_decay_slow);
ct->opacity -= (float)monotonic_t_to_s_double(now - ct->updated_at) / OPT(cursor_trail_decay_slow);
ct->opacity = fmaxf(ct->opacity, 0.0f);
}
}
Expand Down

0 comments on commit f9368a9

Please sign in to comment.