mirror of
https://github.com/raysan5/raylib.git
synced 2025-10-26 12:27:01 +00:00
Corrected issue with floor() #1377
This commit is contained in:
@@ -47,7 +47,7 @@ void main()
|
||||
{
|
||||
for (int i = 2; (i < max(2, sqrt(value) + 1)); i++)
|
||||
{
|
||||
if ((value - i*floor(value/i)) == 0)
|
||||
if ((value - i*floor(float(value)/float(i))) == 0)
|
||||
{
|
||||
color = Colorizer(float(i), scale);
|
||||
//break; // Uncomment to color by the largest factor instead
|
||||
|
||||
Reference in New Issue
Block a user