summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2022-04-19 15:36:06 -0700
committerVito Caputo <vcaputo@pengaru.com>2022-04-19 15:36:06 -0700
commit53d4d504b9103f524c50385ed3545fd08d0e272e (patch)
tree3f540f6bd1a0c6eb6301f15ebf3376e9c6fdaf68 /src/modules
parentca14c4bf346a200ab8a66be293d8e71d49e09e32 (diff)
*: s/til_fb_fragment_zero/til_fb_fragment_clear/
Mechanical renaming of "zero" to "clear" throughout for this context.
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/compose/compose.c2
-rw-r--r--src/modules/montage/montage.c4
-rw-r--r--src/modules/pixbounce/pixbounce.c2
-rw-r--r--src/modules/plato/plato.c2
-rw-r--r--src/modules/rtv/rtv.c2
-rw-r--r--src/modules/sparkler/sparkler.c4
-rw-r--r--src/modules/spiro/spiro.c2
-rw-r--r--src/modules/stars/stars.c2
-rw-r--r--src/modules/swarm/swarm.c2
9 files changed, 11 insertions, 11 deletions
diff --git a/src/modules/compose/compose.c b/src/modules/compose/compose.c
index da9215b..5b46080 100644
--- a/src/modules/compose/compose.c
+++ b/src/modules/compose/compose.c
@@ -106,7 +106,7 @@ static void compose_prepare_frame(void *context, unsigned ticks, unsigned n_cpus
{
compose_context_t *ctxt = context;
- til_fb_fragment_zero(fragment);
+ til_fb_fragment_clear(fragment);
for (int i = 0; i < ctxt->n_layers; i++)
til_module_render(ctxt->layers[i].module, ctxt->layers[i].module_ctxt, ticks, fragment);
diff --git a/src/modules/montage/montage.c b/src/modules/montage/montage.c
index 5a9b688..a45a32c 100644
--- a/src/modules/montage/montage.c
+++ b/src/modules/montage/montage.c
@@ -149,7 +149,7 @@ static int montage_fragment_tile(const til_fb_fragment_t *fragment, unsigned til
res_fragment->stride = fragment->stride + ((fragment->width - res_fragment->width) * 4);
res_fragment->pitch = fragment->pitch;
res_fragment->number = number;
- res_fragment->zeroed = fragment->zeroed;
+ res_fragment->cleared = fragment->cleared;
return 1;
}
@@ -193,7 +193,7 @@ static void montage_render_fragment(void *context, unsigned ticks, unsigned cpu,
const til_module_t *module = ctxt->modules[fragment->number];
if (fragment->number >= ctxt->n_modules) {
- til_fb_fragment_zero(fragment);
+ til_fb_fragment_clear(fragment);
return;
}
diff --git a/src/modules/pixbounce/pixbounce.c b/src/modules/pixbounce/pixbounce.c
index 6585053..ff2d990 100644
--- a/src/modules/pixbounce/pixbounce.c
+++ b/src/modules/pixbounce/pixbounce.c
@@ -141,7 +141,7 @@ static void pixbounce_render_fragment(void *context, unsigned ticks, unsigned cp
int width = fragment->width, height = fragment->height;
/* blank the frame */
- til_fb_fragment_zero(fragment);
+ til_fb_fragment_clear(fragment);
/* check for very small fragment */
if(pix_width*2>width||pix_height*2>height)
diff --git a/src/modules/plato/plato.c b/src/modules/plato/plato.c
index c8aba18..5942d93 100644
--- a/src/modules/plato/plato.c
+++ b/src/modules/plato/plato.c
@@ -636,7 +636,7 @@ static void plato_render_fragment(void *context, unsigned ticks, unsigned cpu, t
plato_context_t *ctxt = context;
ctxt->r += .015f;
- til_fb_fragment_zero(fragment);
+ til_fb_fragment_clear(fragment);
for (int i = 0; i < sizeof(polyhedra) / sizeof(*polyhedra); i++) {
m4f_t transform;
diff --git a/src/modules/rtv/rtv.c b/src/modules/rtv/rtv.c
index 217368c..a236f96 100644
--- a/src/modules/rtv/rtv.c
+++ b/src/modules/rtv/rtv.c
@@ -311,7 +311,7 @@ static void rtv_prepare_frame(void *context, unsigned ticks, unsigned n_cpus, ti
*/
if (!ctxt->channel->module->render_fragment &&
!ctxt->channel->module->prepare_frame)
- til_fb_fragment_zero(fragment);
+ til_fb_fragment_clear(fragment);
else
til_module_render(ctxt->channel->module, ctxt->channel->module_ctxt, ticks, fragment);
}
diff --git a/src/modules/sparkler/sparkler.c b/src/modules/sparkler/sparkler.c
index f13954e..ec706b9 100644
--- a/src/modules/sparkler/sparkler.c
+++ b/src/modules/sparkler/sparkler.c
@@ -87,7 +87,7 @@ static void sparkler_prepare_frame(void *context, unsigned ticks, unsigned ncpus
ctxt->n_cpus = ncpus;
if (ctxt->setup.show_bsp_matches)
- til_fb_fragment_zero(fragment);
+ til_fb_fragment_clear(fragment);
particles_sim(ctxt->particles, fragment);
particles_add_particles(ctxt->particles, NULL, &simple_ops, INIT_PARTS / 4);
@@ -101,7 +101,7 @@ static void sparkler_render_fragment(void *context, unsigned ticks, unsigned cpu
sparkler_context_t *ctxt = context;
if (!ctxt->setup.show_bsp_matches)
- til_fb_fragment_zero(fragment);
+ til_fb_fragment_clear(fragment);
particles_draw(ctxt->particles, fragment);
}
diff --git a/src/modules/spiro/spiro.c b/src/modules/spiro/spiro.c
index ddbc33d..546dc60 100644
--- a/src/modules/spiro/spiro.c
+++ b/src/modules/spiro/spiro.c
@@ -81,7 +81,7 @@ static void spiro_render_fragment(void *context, unsigned ticks, unsigned cpu, t
}
/* blank the fragment */
- til_fb_fragment_zero(fragment);
+ til_fb_fragment_clear(fragment);
/* plot one spirograph run */
float l=ctxt->p/ctxt->r;
diff --git a/src/modules/stars/stars.c b/src/modules/stars/stars.c
index 288057f..d7093fe 100644
--- a/src/modules/stars/stars.c
+++ b/src/modules/stars/stars.c
@@ -124,7 +124,7 @@ static void stars_render_fragment(void *context, unsigned ticks, unsigned cpu, t
max_radius=1.f+((width+height)*.001f);
- til_fb_fragment_zero(fragment);
+ til_fb_fragment_clear(fragment);
iterator=ctxt->points;
for(;;)
diff --git a/src/modules/swarm/swarm.c b/src/modules/swarm/swarm.c
index a41e388..e708082 100644
--- a/src/modules/swarm/swarm.c
+++ b/src/modules/swarm/swarm.c
@@ -410,7 +410,7 @@ static void swarm_render_fragment(void *context, unsigned ticks, unsigned cpu, t
swarm_update(ctxt, ticks);
- til_fb_fragment_zero(fragment);
+ til_fb_fragment_clear(fragment);
switch (ctxt->setup.draw_style) {
case SWARM_DRAW_STYLE_POINTS:
© All Rights Reserved