Skip to content
Permalink
Browse files
Fixed windows compile
  • Loading branch information
slouken committed Oct 21, 2013
1 parent f5fa492 commit aa86e05d21d907606cfa95e8548d674ddc980833
Showing with 3 additions and 1 deletion.
  1. +2 −0 WhatsNew.txt
  2. +1 −1 src/haptic/windows/SDL_syshaptic.c
@@ -1,3 +1,5 @@

This is a list of API changes in SDL's version history.

2.0.1
*
@@ -1567,7 +1567,7 @@ SDL_RunXInputHaptic(void *arg)
SDL_LockMutex(hwdata->mutex);
/* If we're currently running and need to stop... */
if (hwdata->stopTicks) {
if ((hwdata->stopTicks != SDL_HAPTIC_INFINITY) && SDL_TIMESTAMP_PASSED(SDL_GetTicks(), hwdata->stopTicks)) {
if ((hwdata->stopTicks != SDL_HAPTIC_INFINITY) && SDL_TICKS_PASSED(SDL_GetTicks(), hwdata->stopTicks)) {
XINPUT_VIBRATION vibration = { 0, 0 };
hwdata->stopTicks = 0;
XINPUTSETSTATE(hwdata->userid, &vibration);

0 comments on commit aa86e05

Please sign in to comment.