Skip to content

Commit

Permalink
Removed unnecessary float casts
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed May 23, 2024
1 parent 3acca27 commit 2461bd8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/gamepadutils.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 2461bd8

Please sign in to comment.