mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-10-05 01:16:26 +00:00
Fixed warning C4244: 'function': conversion from 'int' to 'Uint16', possible loss of data
This commit is contained in:
@@ -1075,7 +1075,7 @@ static SDL_bool HasHomeLED(SDL_DriverSwitch_Context *ctx)
|
|||||||
return SDL_TRUE;
|
return SDL_TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
static SDL_bool AlwaysUsesLabels(int vendor_id, int product_id, ESwitchDeviceInfoControllerType eControllerType)
|
static SDL_bool AlwaysUsesLabels(Uint16 vendor_id, Uint16 product_id, ESwitchDeviceInfoControllerType eControllerType)
|
||||||
{
|
{
|
||||||
/* Some controllers don't have a diamond button configuration, so should always use labels */
|
/* Some controllers don't have a diamond button configuration, so should always use labels */
|
||||||
if (SDL_IsJoystickGameCube(vendor_id, product_id)) {
|
if (SDL_IsJoystickGameCube(vendor_id, product_id)) {
|
||||||
|
Reference in New Issue
Block a user