# HG changeset patch # User Edgar Simo # Date 1216368366 0 # Node ID 50414589501ef95334bc08db55d0dacd9a86ec36 # Parent 924a32719b6f281e265f3114585319f146df1a45 Fixed some typos. diff -r 924a32719b6f -r 50414589501e src/haptic/darwin/SDL_syshaptic.c --- a/src/haptic/darwin/SDL_syshaptic.c Fri Jul 18 08:03:24 2008 +0000 +++ b/src/haptic/darwin/SDL_syshaptic.c Fri Jul 18 08:06:06 2008 +0000 @@ -183,7 +183,7 @@ } /* Check for axes, we have an artificial limit on axes */ - *axes = ((features.numFfAxes) > 3) ? + *naxes = ((features.numFfAxes) > 3) ? 3 : features.numFfAxes; /* Always supported features. */ @@ -282,9 +282,6 @@ int SDL_SYS_JoystickSameHaptic(SDL_Haptic * haptic, SDL_Joystick * joystick) { - if (SDL_strcmp(joystick->name,haptic->name)==0) { - return 1; - } return 0; } @@ -349,7 +346,7 @@ LONG *rglDir; /* Handle no axes a part. */ - if (dest->cAxes == 0) { + if (naxes == 0) { effect->rglDirection = NULL; return 0; }