summaryrefslogtreecommitdiff
path: root/src/modules/snow
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/snow')
-rw-r--r--src/modules/snow/snow.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/modules/snow/snow.c b/src/modules/snow/snow.c
index a367113..1a171ee 100644
--- a/src/modules/snow/snow.c
+++ b/src/modules/snow/snow.c
@@ -37,15 +37,17 @@ static til_module_context_t * snow_create_context(unsigned seed, unsigned ticks,
}
-static void snow_prepare_frame(til_module_context_t *context, unsigned ticks, til_fb_fragment_t *fragment, til_frame_plan_t *res_frame_plan)
+static void snow_prepare_frame(til_module_context_t *context, unsigned ticks, til_fb_fragment_t **fragment_ptr, til_frame_plan_t *res_frame_plan)
{
*res_frame_plan = (til_frame_plan_t){ .fragmenter = til_fragmenter_slice_per_cpu };
}
-static void snow_render_fragment(til_module_context_t *context, unsigned ticks, unsigned cpu, til_fb_fragment_t *fragment)
+static void snow_render_fragment(til_module_context_t *context, unsigned ticks, unsigned cpu, til_fb_fragment_t **fragment_ptr)
{
- snow_context_t *ctxt = (snow_context_t *)context;
+ snow_context_t *ctxt = (snow_context_t *)context;
+ til_fb_fragment_t *fragment = *fragment_ptr;
+
unsigned *seed = &ctxt->seeds[cpu].seed;
for (unsigned y = fragment->y; y < fragment->y + fragment->height; y++) {
© All Rights Reserved