소스 검색

Fixed missing "0" in the button list

Sam Lantinga 1 년 전
부모
커밋
f66f61de01
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      test/gamepadutils.c

+ 1 - 1
test/gamepadutils.c

@@ -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)) {