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:
Themaister 2013-01-09 00:41:40 +01:00
parent c3ff164919
commit 5832f849f0

View File

@ -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