diff options
author | Vito Caputo <vcaputo@pengaru.com> | 2023-12-16 19:51:12 -0800 |
---|---|---|
committer | Vito Caputo <vcaputo@pengaru.com> | 2023-12-16 19:51:12 -0800 |
commit | 27a745bc3f9df50455ddc8a8e777aec7d7204aeb (patch) | |
tree | 79da833cfabd8f7e88659fc601b055064b0ee840 /src/modules/spokes | |
parent | 93d6b5ab284cd46e60f32047c4a0b281aa5822a0 (diff) |
modules/spokes: use fabsf()
clang rightfully complained about this, these are floats
Diffstat (limited to 'src/modules/spokes')
-rw-r--r-- | src/modules/spokes/spokes.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/spokes/spokes.c b/src/modules/spokes/spokes.c index f033cf1..1bd88c9 100644 --- a/src/modules/spokes/spokes.c +++ b/src/modules/spokes/spokes.c @@ -183,8 +183,8 @@ static void spokes_render_fragment(til_module_context_t *context, til_stream_t * spokes_draw_segmented_line(fragment, s->iterations, theta, origin_x, origin_y, rintf(perimiter_x), rintf(perimiter_y), color, s->thickness); /* Calculate and draw the mirror line... */ - perimiter_x=abs(perimiter_x-width); - perimiter_y=abs(perimiter_y-height); + perimiter_x=fabsf(perimiter_x-width); + perimiter_y=fabsf(perimiter_y-height); spokes_draw_segmented_line(fragment, s->iterations, theta, origin_x, origin_y, rintf(perimiter_x), rintf(perimiter_y), color, s->thickness); } } |