summaryrefslogtreecommitdiff
path: root/src/modules/plato
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/plato')
-rw-r--r--src/modules/plato/plato.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/modules/plato/plato.c b/src/modules/plato/plato.c
index 43d9bdd..f56bef8 100644
--- a/src/modules/plato/plato.c
+++ b/src/modules/plato/plato.c
@@ -622,9 +622,10 @@ static til_module_context_t * plato_create_context(unsigned seed, unsigned ticks
}
-static void plato_render_fragment(til_module_context_t *context, unsigned ticks, unsigned cpu, til_fb_fragment_t *fragment)
+static void plato_render_fragment(til_module_context_t *context, unsigned ticks, unsigned cpu, til_fb_fragment_t **fragment_ptr)
{
- plato_context_t *ctxt = (plato_context_t *)context;
+ plato_context_t *ctxt = (plato_context_t *)context;
+ til_fb_fragment_t *fragment = *fragment_ptr;
ctxt->r += (float)(ticks - context->ticks) * .001f;
context->ticks = ticks;
© All Rights Reserved