From b855e5ed0708f2d832b35b20126af941f26dc8fb Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Wed, 11 Oct 2023 00:25:58 -0700 Subject: modules/blinds: uninline the per-blind functions In the pre-threaded blinds days these were tiny functions, not anymore. Plus it's not like there's very many blinds ever anyways so the number of calls isn't huge, making the syntactic sugar aspect of "inline suggests hot" a bit misleading here. --- src/modules/blinds/blinds.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/modules') diff --git a/src/modules/blinds/blinds.c b/src/modules/blinds/blinds.c index 71a7311..09e8c64 100644 --- a/src/modules/blinds/blinds.c +++ b/src/modules/blinds/blinds.c @@ -86,7 +86,7 @@ static void blinds_prepare_frame(til_module_context_t *context, til_stream_t *st /* draw a horizontal blind over fragment */ -static inline void draw_blind_horizontal(til_fb_fragment_t *fragment, unsigned row, unsigned count, float t) +static void draw_blind_horizontal(til_fb_fragment_t *fragment, unsigned row, unsigned count, float t) { float row_height = fragment->frame_height / (float)count; unsigned height = roundf(t * row_height); @@ -117,7 +117,7 @@ static inline void draw_blind_horizontal(til_fb_fragment_t *fragment, unsigned r /* draw a vertical blind over fragment */ -static inline void draw_blind_vertical(til_fb_fragment_t *fragment, unsigned column, unsigned count, float t) +static void draw_blind_vertical(til_fb_fragment_t *fragment, unsigned column, unsigned count, float t) { float column_width = fragment->frame_width / (float)count; unsigned width = roundf(t * column_width); -- cgit v1.2.3