summaryrefslogtreecommitdiff
path: root/src/modules/stars/stars.c
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2022-06-14 02:28:36 -0700
committerVito Caputo <vcaputo@pengaru.com>2022-08-07 06:51:36 -0700
commit5a0776f1fdc6b7780cd21d568150e804347a6f8a (patch)
tree646f1c6e73cd9d7cb63306a840879a0a64aebbed /src/modules/stars/stars.c
parent4eb5f55bb0087769e47d0dc745a831440c5041fe (diff)
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.
Diffstat (limited to 'src/modules/stars/stars.c')
-rw-r--r--src/modules/stars/stars.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/modules/stars/stars.c b/src/modules/stars/stars.c
index 3a3f90f..8e6a5d0 100644
--- a/src/modules/stars/stars.c
+++ b/src/modules/stars/stars.c
@@ -109,9 +109,11 @@ static void stars_destroy_context(til_module_context_t *context)
}
-static void stars_render_fragment(til_module_context_t *context, unsigned ticks, unsigned cpu, til_fb_fragment_t *fragment)
+static void stars_render_fragment(til_module_context_t *context, unsigned ticks, unsigned cpu, til_fb_fragment_t **fragment_ptr)
{
- stars_context_t *ctxt = (stars_context_t *)context;
+ stars_context_t *ctxt = (stars_context_t *)context;
+ til_fb_fragment_t *fragment = *fragment_ptr;
+
struct points* iterator;
struct points* tmp_ptr;
struct points* last_ptr=NULL;
© All Rights Reserved