From f9368a947224a799effddcd5c1ac0982eec3ee7d Mon Sep 17 00:00:00 2001 From: Rick Choi Date: Sun, 27 Oct 2024 15:13:05 +0900 Subject: [PATCH] fix build error in linux ci --- kitty/cursor_trail.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kitty/cursor_trail.c b/kitty/cursor_trail.c index 6abcec0d1..84c63808b 100644 --- a/kitty/cursor_trail.c +++ b/kitty/cursor_trail.c @@ -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); } }