diff options
author | Vito Caputo <vcaputo@pengaru.com> | 2023-12-12 15:04:15 -0800 |
---|---|---|
committer | Vito Caputo <vcaputo@pengaru.com> | 2023-12-12 15:04:15 -0800 |
commit | edddfe75c95b35c819c59a755b2ac190b072de97 (patch) | |
tree | 3384b0d9344ecb59a4bd3ebb89fe5aca28ea2761 /src/modules/asc/Makefile.am | |
parent | 6f9ab5d3a95500d98d2dcf0d6e50bc3e86827198 (diff) |
modules/spokes: fix missing spoke in some counts
Due to floating point errors this loop would occasionally miss
the last spoke as-is.
A quick fix is to just round down the accumulator before
comparing it... this function in general needs to all be cleaned
up, esp. since the conversion to floats.
An obvious repro of this issue, fixed by this commit:
'--module=spokes,iterations=2,count=3,twist=0.125,thickness=2' \
'--video=sdl,ratio=full,fullscreen=off,vsync=on,size=640x480'
The low count of 3 makes the missing spoke quite visible...
Diffstat (limited to 'src/modules/asc/Makefile.am')
0 files changed, 0 insertions, 0 deletions