summaryrefslogtreecommitdiff
path: root/src/modules/blinds
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2023-10-11 00:25:58 -0700
committerVito Caputo <vcaputo@pengaru.com>2023-10-11 00:25:58 -0700
commitb855e5ed0708f2d832b35b20126af941f26dc8fb (patch)
tree61089d3e827f69db18df2c08d059414f8835b2c8 /src/modules/blinds
parentc9929d6f14ef05306b05c567166b91f71ec66694 (diff)
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.
Diffstat (limited to 'src/modules/blinds')
-rw-r--r--src/modules/blinds/blinds.c4
1 files changed, 2 insertions, 2 deletions
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);
© All Rights Reserved