diff options
| author | Ray <[email protected]> | 2020-10-05 20:19:18 +0200 |
|---|---|---|
| committer | Ray <[email protected]> | 2020-10-05 20:19:18 +0200 |
| commit | 41192c6d4a66b45017af3a285ba3b6a7835b5989 (patch) | |
| tree | 184448d411ab6ed4d793633566ad54349f52ff67 /src | |
| parent | b29311c7cacf17b3512d837951d9e02fceae586f (diff) | |
| download | raylib-41192c6d4a66b45017af3a285ba3b6a7835b5989.tar.gz raylib-41192c6d4a66b45017af3a285ba3b6a7835b5989.zip | |
Replace 0.f by 0.0f
Diffstat (limited to 'src')
| -rw-r--r-- | src/camera.h | 2 | ||||
| -rw-r--r-- | src/core.c | 10 | ||||
| -rw-r--r-- | src/textures.c | 2 |
3 files changed, 7 insertions, 7 deletions
diff --git a/src/camera.h b/src/camera.h index 2463200c..d40a80b6 100644 --- a/src/camera.h +++ b/src/camera.h @@ -236,7 +236,7 @@ static void DisableCursor() {} // Lock cursor static int IsKeyDown(int key) { return 0; } static int IsMouseButtonDown(int button) { return 0;} -static float GetMouseWheelMove() { return 0.f; } +static float GetMouseWheelMove() { return 0.0f; } static Vector2 GetMousePosition() { return (Vector2){ 0.0f, 0.0f }; } #endif @@ -2725,9 +2725,9 @@ void SetMouseScale(float scaleX, float scaleY) float GetMouseWheelMove(void) { #if defined(PLATFORM_ANDROID) - return 0.f; + return 0.0f; #elif defined(PLATFORM_WEB) - return CORE.Input.Mouse.previousWheelMove/100.f; + return CORE.Input.Mouse.previousWheelMove/100.0f; #else return CORE.Input.Mouse.previousWheelMove; #endif @@ -3896,7 +3896,7 @@ static void PollInputEvents(void) // Register previous mouse states CORE.Input.Mouse.previousWheelMove = CORE.Input.Mouse.currentWheelMove; - CORE.Input.Mouse.currentWheelMove = 0.f; + CORE.Input.Mouse.currentWheelMove = 0.0f; for (int i = 0; i < 3; i++) { CORE.Input.Mouse.previousButtonState[i] = CORE.Input.Mouse.currentButtonState[i]; @@ -3918,7 +3918,7 @@ static void PollInputEvents(void) // Register previous mouse states CORE.Input.Mouse.previousWheelMove = CORE.Input.Mouse.currentWheelMove; - CORE.Input.Mouse.currentWheelMove = 0.f; + CORE.Input.Mouse.currentWheelMove = 0.0f; for (int i = 0; i < 3; i++) CORE.Input.Mouse.previousButtonState[i] = CORE.Input.Mouse.currentButtonState[i]; #endif // PLATFORM_UWP @@ -3934,7 +3934,7 @@ static void PollInputEvents(void) // Register previous mouse wheel state CORE.Input.Mouse.previousWheelMove = CORE.Input.Mouse.currentWheelMove; - CORE.Input.Mouse.currentWheelMove = 0.f; + CORE.Input.Mouse.currentWheelMove = 0.0f; #endif // Register previous touch states 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)); |
