summaryrefslogtreecommitdiff
path: root/src/modules/pixbounce/pixbounce.c
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2022-05-01 11:43:42 -0700
committerVito Caputo <vcaputo@pengaru.com>2022-05-01 13:50:26 -0700
commita81425632db81527bcecd2d0fbdb5b09c25141ba (patch)
treebdc6ba54c39e9a859d2c87e9a0a87d70b85e00a8 /src/modules/pixbounce/pixbounce.c
parent45d1f956b35fa9003106716e42425cc86cadc7a1 (diff)
modules/*: make use of generic fragmenters
Just one case, modules/submit, was using 32x32 tiles and is now using 64x64. I don't expect it to make any difference. While here I fixed up the num_cpus/n_cpus naming inconsistencies, normalizing on n_cpus.
Diffstat (limited to 'src/modules/pixbounce/pixbounce.c')
-rw-r--r--src/modules/pixbounce/pixbounce.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/modules/pixbounce/pixbounce.c b/src/modules/pixbounce/pixbounce.c
index 67f35a9..e864763 100644
--- a/src/modules/pixbounce/pixbounce.c
+++ b/src/modules/pixbounce/pixbounce.c
@@ -129,7 +129,6 @@ char pix_map[][16*16] = {
};
typedef struct pixbounce_context_t {
- unsigned n_cpus;
int x, y;
int x_dir, y_dir;
int pix_num;
@@ -154,7 +153,7 @@ static uint32_t pick_color()
return makergb(rand()%256, rand()%256, rand()%256, 1);
}
-static void * pixbounce_create_context(unsigned ticks, unsigned num_cpus, til_setup_t *setup)
+static void * pixbounce_create_context(unsigned ticks, unsigned n_cpus, til_setup_t *setup)
{
pixbounce_context_t *ctxt;
@@ -162,7 +161,6 @@ static void * pixbounce_create_context(unsigned ticks, unsigned num_cpus, til_se
if (!ctxt)
return NULL;
- ctxt->n_cpus = num_cpus;
ctxt->x = -1;
ctxt->y = -1;
ctxt->x_dir = 0;
© All Rights Reserved