lmms
lmms copied to clipboard
Fix UI freeze when zooming in on long samples
In the first loop of the function, resolution (float) gets added to the loop index. On extremely large indices this operation fails, resulting in an infinite loop.
Solution is to declare an int version of resolution for loop incrementing.
Fixes #7249