mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-10-17 07:16:00 +00:00
joystick/gdk/SDL_gameinputjoystick.c: fix build errors due to -Wformat
This commit is contained in:
@@ -261,7 +261,7 @@ static bool GAMEINPUT_JoystickInit(void)
|
|||||||
|
|
||||||
hR = GameInputCreateFunc(&g_pGameInput);
|
hR = GameInputCreateFunc(&g_pGameInput);
|
||||||
if (FAILED(hR)) {
|
if (FAILED(hR)) {
|
||||||
return SDL_SetError("GameInputCreate failure with HRESULT of %08X", hR);
|
return SDL_SetError("GameInputCreate failure with HRESULT of %08lX", hR);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -274,7 +274,7 @@ static bool GAMEINPUT_JoystickInit(void)
|
|||||||
GAMEINPUT_InternalJoystickDeviceCallback,
|
GAMEINPUT_InternalJoystickDeviceCallback,
|
||||||
&g_GameInputCallbackToken);
|
&g_GameInputCallbackToken);
|
||||||
if (FAILED(hR)) {
|
if (FAILED(hR)) {
|
||||||
return SDL_SetError("IGameInput::RegisterDeviceCallback failure with HRESULT of %08X", hR);
|
return SDL_SetError("IGameInput::RegisterDeviceCallback failure with HRESULT of %08lX", hR);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Calculate the relative offset between SDL timestamps and GameInput timestamps
|
// Calculate the relative offset between SDL timestamps and GameInput timestamps
|
||||||
|
Reference in New Issue
Block a user