mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-06-03 02:17:39 +00:00
Change return type from void to int, for functions that set an error
(SDL_SetError(), SDL_OutOfMemory(), SDL_Unsupported(), SDL_InvalidParam()) Update prototype to forward errors to generic layer, for the functions: MoveCursor, WarpMouse, GL_DeleteContext, GetDisplayModes. Check invalid parameter in SDL_SetTextInputRect() generic layer.
This commit is contained in:
parent
6c37d5b57f
commit
c5c94a6be6
100 changed files with 472 additions and 389 deletions
|
@ -1522,12 +1522,13 @@ int SDL_hid_get_feature_report(SDL_hid_device *device, unsigned char *data, size
|
|||
return result;
|
||||
}
|
||||
|
||||
void SDL_hid_close(SDL_hid_device *device)
|
||||
int SDL_hid_close(SDL_hid_device *device)
|
||||
{
|
||||
CHECK_DEVICE_MAGIC(device, );
|
||||
CHECK_DEVICE_MAGIC(device, -1);
|
||||
|
||||
device->backend->hid_close(device->device);
|
||||
DeleteHIDDeviceWrapper(device);
|
||||
return 0;
|
||||
}
|
||||
|
||||
int SDL_hid_get_manufacturer_string(SDL_hid_device *device, wchar_t *string, size_t maxlen)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue