summaryrefslogtreecommitdiff
path: root/src/modules/strobe
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/strobe')
-rw-r--r--src/modules/strobe/strobe.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/modules/strobe/strobe.c b/src/modules/strobe/strobe.c
index 9e7024c..3d354e8 100644
--- a/src/modules/strobe/strobe.c
+++ b/src/modules/strobe/strobe.c
@@ -129,15 +129,16 @@ static void strobe_render_fragment(til_module_context_t *context, til_stream_t *
}
-static void strobe_finish_frame(til_module_context_t *context, til_stream_t *stream, unsigned int ticks, til_fb_fragment_t **fragment_ptr)
+static int strobe_finish_frame(til_module_context_t *context, til_stream_t *stream, unsigned int ticks, til_fb_fragment_t **fragment_ptr)
{
strobe_context_t *ctxt = (strobe_context_t *)context;
- if (!ctxt->flash)
- return;
+ if (ctxt->flash) {
+ ctxt->flash = 0;
+ ctxt->last_flash_ticks = ticks;
+ }
- ctxt->flash = 0;
- ctxt->last_flash_ticks = ticks;
+ return 0;
}
© All Rights Reserved