summaryrefslogtreecommitdiff
path: root/src/modules/spokes
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/spokes')
-rw-r--r--src/modules/spokes/spokes.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/spokes/spokes.c b/src/modules/spokes/spokes.c
index 6bc3b2b..f033cf1 100644
--- a/src/modules/spokes/spokes.c
+++ b/src/modules/spokes/spokes.c
@@ -169,7 +169,7 @@ static void spokes_render_fragment(til_module_context_t *context, til_stream_t *
/* we're setup now to draw some shit */
til_fb_fragment_clear(fragment);
- for(float i=0; i<=width+height-stride; i+=stride){ /* iterate over half the perimiter at a time... */
+ for(float i=0; floorf(i)<=((float)width+height)-stride; i+=stride){ /* iterate over half the perimiter at a time... */
float perimiter_x, perimiter_y;
if(i+fmodf(offset, stride) < width) {
© All Rights Reserved