From 5a0776f1fdc6b7780cd21d568150e804347a6f8a Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Tue, 14 Jun 2022 02:28:36 -0700 Subject: til: til_fb_fragment_t **fragment_ptr all the things Preparatory commit for enabling cloneable/swappable fragments There's an outstanding issue with the til_fb_page_t submission, see comments. Doesn't matter for now since cloning doesn't happen yet, but will need to be addressed before they do. --- src/modules/spiro/spiro.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/modules/spiro') diff --git a/src/modules/spiro/spiro.c b/src/modules/spiro/spiro.c index 30e5f06..76b3a80 100644 --- a/src/modules/spiro/spiro.c +++ b/src/modules/spiro/spiro.c @@ -53,13 +53,13 @@ static til_module_context_t * spiro_create_context(unsigned seed, unsigned ticks return &ctxt->til_module_context; } -static void spiro_render_fragment(til_module_context_t *context, unsigned ticks, unsigned cpu, til_fb_fragment_t *fragment) +static void spiro_render_fragment(til_module_context_t *context, unsigned ticks, unsigned cpu, til_fb_fragment_t **fragment_ptr) { - spiro_context_t *ctxt = (spiro_context_t *)context; + spiro_context_t *ctxt = (spiro_context_t *)context; + til_fb_fragment_t *fragment = *fragment_ptr; - int width = fragment->frame_width, height = fragment->frame_height; - - int display_R, display_origin_x, display_origin_y; + int width = fragment->frame_width, height = fragment->frame_height; + int display_R, display_origin_x, display_origin_y; /* Based on the fragment's dimensions, calculate the origin and radius of the fixed outer circle, C0. */ -- cgit v1.2.3