summaryrefslogtreecommitdiff
path: root/src/modules/drizzle
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2023-12-12 15:04:15 -0800
committerVito Caputo <vcaputo@pengaru.com>2023-12-12 15:04:15 -0800
commitedddfe75c95b35c819c59a755b2ac190b072de97 (patch)
tree3384b0d9344ecb59a4bd3ebb89fe5aca28ea2761 /src/modules/drizzle
parent6f9ab5d3a95500d98d2dcf0d6e50bc3e86827198 (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/drizzle')
0 files changed, 0 insertions, 0 deletions
© All Rights Reserved