SDL_GetTouchDevices() follows the SDL_GetStringRule

This commit is contained in:
Sam Lantinga
2024-07-18 22:15:11 -07:00
parent 856d598d6e
commit eb22fcce35
4 changed files with 9 additions and 9 deletions

View File

@@ -742,7 +742,7 @@ void X11_Xinput2UpdateDevices(SDL_VideoDevice *_this, SDL_bool initial_check)
int new_mouse_count = 0;
SDL_MouseID *new_mice = NULL;
int old_touch_count = 0;
SDL_TouchID *old_touch_devices64 = NULL;
const SDL_TouchID *old_touch_devices64 = NULL;
Uint32 *old_touch_devices = NULL;
int new_touch_count = 0;
Uint32 *new_touch_devices = NULL;
@@ -765,7 +765,6 @@ void X11_Xinput2UpdateDevices(SDL_VideoDevice *_this, SDL_bool initial_check)
}
}
}
SDL_free(old_touch_devices64);
for (int i = 0; i < ndevices; i++) {
XIDeviceInfo *dev = &info[i];