summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2023-07-12 13:11:25 -0700
committerVito Caputo <vcaputo@pengaru.com>2023-07-12 13:11:25 -0700
commit112cf7f621dc9a5900674d2bc5d99dd0e34e451d (patch)
tree80f3ee924df9fa52aff7f560c5ed36806ec954dc
parentfa268acb0490f7f05bef96902aee84ad4f69151d (diff)
modules/blinds: update taps in prepare_frame
Silly and unnecessarily racy to do this in render_fragment now that blinds is threaded
-rw-r--r--src/modules/blinds/blinds.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/modules/blinds/blinds.c b/src/modules/blinds/blinds.c
index c4ee07f..8ffd596 100644
--- a/src/modules/blinds/blinds.c
+++ b/src/modules/blinds/blinds.c
@@ -77,7 +77,11 @@ static til_module_context_t * blinds_create_context(const til_module_t *module,
static void blinds_prepare_frame(til_module_context_t *context, til_stream_t *stream, unsigned ticks, til_fb_fragment_t **fragment_ptr, til_frame_plan_t *res_frame_plan)
{
+ blinds_context_t *ctxt = (blinds_context_t *)context;
+
*res_frame_plan = (til_frame_plan_t){ .fragmenter = til_fragmenter_tile64 };
+
+ blinds_update_taps(ctxt, stream, ticks);
}
@@ -152,8 +156,6 @@ static void blinds_render_fragment(til_module_context_t *context, til_stream_t *
unsigned blind;
float t;
- blinds_update_taps(ctxt, stream, ticks);
-
til_fb_fragment_clear(fragment);
for (t = *ctxt->t, blind = 0; blind < (unsigned)*ctxt->count; blind++, t += *ctxt->step) {
© All Rights Reserved