From e608d00bb1b51e6d75f2ccf12834af36267a8308 Mon Sep 17 00:00:00 2001 From: Andrew Mayorov Date: Thu, 27 Aug 2020 16:29:34 +0300 Subject: [PATCH] Mark functions computing intensity and easing as inline --- kitty/screen.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/kitty/screen.c b/kitty/screen.c index 54c399867..c4c2b53f5 100644 --- a/kitty/screen.c +++ b/kitty/screen.c @@ -1328,19 +1328,19 @@ screen_invert_colors(Screen *self) { return inverted; } -float +static inline float ease_out_cubic(float phase) { return 1.0f - powf(1.0f - phase, 3.0f); } -float +static inline float ease_in_out_cubic(float phase) { return phase < 0.5f ? 4.0f * powf(phase, 3.0f) : 1.0f - powf(-2.0f * phase + 2.0f, 3.0f) / 2.0f; } -float +static inline float visual_bell_intensity(float phase) { float peak = 0.2f; float fade = 1.0f - peak;