mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-02-04 10:36:50 +00:00
Don't allow pressed fingers count to wrap around.
Play safe. Shouldn't happen, but you never know with Android.
This commit is contained in:
parent
c3ff164919
commit
5832f849f0
@ -170,7 +170,8 @@ static void android_input_poll(void *data)
|
||||
else
|
||||
{
|
||||
memmove(pointer + motion_pointer, pointer + motion_pointer + 1, (MAX_TOUCH - motion_pointer - 1) * sizeof(struct input_pointer));
|
||||
pointer_count--;
|
||||
if (pointer_count > 0)
|
||||
pointer_count--;
|
||||
}
|
||||
}
|
||||
else
|
||||
|
Loading…
x
Reference in New Issue
Block a user