Skip to content

Commit

Permalink
Fixed missing "0" in the button list
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Nov 11, 2023
1 parent 04b6b29 commit f66f61d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/gamepadutils.c
Original file line number Diff line number Diff line change
Expand Up @@ -1710,7 +1710,7 @@ void RenderJoystickDisplay(JoystickDisplay *ctx, SDL_Joystick *joystick)
highlight.h = (float)ctx->button_height;
RenderJoystickButtonHighlight(ctx, i, &highlight);

SDL_snprintf(text, sizeof(text), "%2.d:", i);
SDL_snprintf(text, sizeof(text), "%2d:", i);
SDLTest_DrawString(ctx->renderer, x, y, text);

if (SDL_GetJoystickButton(joystick, (Uint8)i)) {
Expand Down

0 comments on commit f66f61d

Please sign in to comment.