summaryrefslogtreecommitdiff
path: root/src/platform_sdl.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/platform_sdl.c')
-rw-r--r--src/platform_sdl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/platform_sdl.c b/src/platform_sdl.c
index 22168e6..038e67b 100644
--- a/src/platform_sdl.c
+++ b/src/platform_sdl.c
@@ -77,7 +77,7 @@ void clear_screen(struct SDLOffscreenBuffer *buffer, uint32_t pixel_value)
// TODO: make the deadzone circular
float sdl_process_controller_axis_value(int16_t value, int16_t deadzone_threshold)
{
- float result = 0.0;
+ float result = 0.0f;
if (value < -deadzone_threshold)
{
result = (float)(value + deadzone_threshold) / (32768.0f - deadzone_threshold);