Skip to content

Commit

Permalink
Fixed windows compile
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Oct 21, 2013
1 parent f5fa492 commit aa86e05
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions WhatsNew.txt
@@ -1,3 +1,5 @@

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

2.0.1
*
2 changes: 1 addition & 1 deletion src/haptic/windows/SDL_syshaptic.c
Expand Up @@ -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);
Expand Down

0 comments on commit aa86e05

Please sign in to comment.