mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2024-12-16 11:06:49 +01:00
Use SDL sized types
This commit is contained in:
parent
3e3294645f
commit
23569362dc
@ -556,8 +556,8 @@ SDL_EVDEV_sync_device(SDL_evdevlist_item *item)
|
||||
*
|
||||
* this is the structure we're trying to emulate
|
||||
*/
|
||||
uint32_t* mt_req_code;
|
||||
int32_t* mt_req_values;
|
||||
Uint32* mt_req_code;
|
||||
Sint32* mt_req_values;
|
||||
size_t mt_req_size;
|
||||
|
||||
/* TODO: sync devices other than touchscreen */
|
||||
@ -572,7 +572,7 @@ SDL_EVDEV_sync_device(SDL_evdevlist_item *item)
|
||||
return;
|
||||
}
|
||||
|
||||
mt_req_values = (int32_t*)mt_req_code + 1;
|
||||
mt_req_values = (Sint32*)mt_req_code + 1;
|
||||
|
||||
*mt_req_code = ABS_MT_TRACKING_ID;
|
||||
ret = ioctl(item->fd, EVIOCGMTSLOTS(mt_req_size), mt_req_code);
|
||||
|
Loading…
Reference in New Issue
Block a user