summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/modules/spokes/spokes.c4
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);
}
}
© All Rights Reserved