summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2023-05-27 18:16:03 -0700
committerVito Caputo <vcaputo@pengaru.com>2023-05-27 18:16:03 -0700
commit5226e572a7a88da91edf33b919a1aabfe14be942 (patch)
tree5afa675324cbda492cb74a8086de6e8d8bf56011 /src
parentd208c3cab4f8a17db070fd7e73f00122541f2812 (diff)
modules/voronoi: constify til_fb_fragment_t
trivial change; voronoi_sample_colors() only reads from the fragment
Diffstat (limited to 'src')
-rw-r--r--src/modules/voronoi/voronoi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/voronoi/voronoi.c b/src/modules/voronoi/voronoi.c
index 5e40142..d65b432 100644
--- a/src/modules/voronoi/voronoi.c
+++ b/src/modules/voronoi/voronoi.c
@@ -257,7 +257,7 @@ static void voronoi_calculate_distances(voronoi_context_t *ctxt)
}
-static void voronoi_sample_colors(voronoi_context_t *ctxt, til_fb_fragment_t *fragment)
+static void voronoi_sample_colors(voronoi_context_t *ctxt, const til_fb_fragment_t *fragment)
{
for (size_t i = 0; i < ctxt->setup->n_cells; i++) {
voronoi_cell_t *p = &ctxt->cells[i];
© All Rights Reserved