summaryrefslogtreecommitdiffhomepage
path: root/src/textures.c
diff options
context:
space:
mode:
authorRay <[email protected]>2020-10-05 20:19:18 +0200
committerRay <[email protected]>2020-10-05 20:19:18 +0200
commit41192c6d4a66b45017af3a285ba3b6a7835b5989 (patch)
tree184448d411ab6ed4d793633566ad54349f52ff67 /src/textures.c
parentb29311c7cacf17b3512d837951d9e02fceae586f (diff)
downloadraylib-41192c6d4a66b45017af3a285ba3b6a7835b5989.tar.gz
raylib-41192c6d4a66b45017af3a285ba3b6a7835b5989.zip
Replace 0.f by 0.0f
Diffstat (limited to 'src/textures.c')
-rw-r--r--src/textures.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/textures.c b/src/textures.c
index 0854aa9e..6f8784ac 100644
--- a/src/textures.c
+++ b/src/textures.c
@@ -587,7 +587,7 @@ Image GenImageGradientRadial(int width, int height, float density, Color inner,
float dist = hypotf((float)x - centerX, (float)y - centerY);
float factor = (dist - radius*density)/(radius*(1.0f - density));
- factor = (float)fmax(factor, 0.f);
+ factor = (float)fmax(factor, 0.0f);
factor = (float)fmin(factor, 1.f); // dist can be bigger than radius so we have to check
pixels[y*width + x].r = (int)((float)outer.r*factor + (float)inner.r*(1.0f - factor));