mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-07 11:58:12 +00:00
Fixed missing "0" in the button list
This commit is contained in:
@@ -1710,7 +1710,7 @@ void RenderJoystickDisplay(JoystickDisplay *ctx, SDL_Joystick *joystick)
|
|||||||
highlight.h = (float)ctx->button_height;
|
highlight.h = (float)ctx->button_height;
|
||||||
RenderJoystickButtonHighlight(ctx, i, &highlight);
|
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);
|
SDLTest_DrawString(ctx->renderer, x, y, text);
|
||||||
|
|
||||||
if (SDL_GetJoystickButton(joystick, (Uint8)i)) {
|
if (SDL_GetJoystickButton(joystick, (Uint8)i)) {
|
||||||
|
Reference in New Issue
Block a user