From 2461bd864838c582e5b95f1e768a730b4166d613 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Thu, 23 May 2024 15:12:01 -0700 Subject: [PATCH] Removed unnecessary float casts --- test/gamepadutils.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/gamepadutils.c b/test/gamepadutils.c index d14d603e7b..79e8981515 100644 --- a/test/gamepadutils.c +++ b/test/gamepadutils.c @@ -210,10 +210,10 @@ void GetGamepadTouchpadArea(GamepadImage *ctx, SDL_Rect *area) return; } - area->x = (float)ctx->x + (ctx->gamepad_width - ctx->touchpad_width) / 2 + touchpad_area.x; - area->y = (float)ctx->y + ctx->gamepad_height + touchpad_area.y; - area->w = (float)touchpad_area.w; - area->h = (float)touchpad_area.h; + area->x = ctx->x + (ctx->gamepad_width - ctx->touchpad_width) / 2 + touchpad_area.x; + area->y = ctx->y + ctx->gamepad_height + touchpad_area.y; + area->w = touchpad_area.w; + area->h = touchpad_area.h; } void SetGamepadImageShowingFront(GamepadImage *ctx, SDL_bool showing_front)