Fixed some stupid mistakes. gsoc2008_force_feedback
authorEdgar Simo <bobbens@gmail.com>
Sun, 20 Jul 2008 21:55:23 +0000
branchgsoc2008_force_feedback
changeset 25424e055fa7acb9
parent 2541 f2649eaa552e
child 2543 3544a632064c
Fixed some stupid mistakes.
src/haptic/darwin/SDL_syshaptic.c
     1.1 --- a/src/haptic/darwin/SDL_syshaptic.c	Sun Jul 20 21:50:01 2008 +0000
     1.2 +++ b/src/haptic/darwin/SDL_syshaptic.c	Sun Jul 20 21:55:23 2008 +0000
     1.3 @@ -301,7 +301,7 @@
     1.4     if (ret == FF_OK) supported |= SDL_HAPTIC_GAIN;
     1.5     else if (ret != FFERR_UNSUPPORTED) {
     1.6        SDL_SetError("Haptic: Unable to get if device supports gain: %s.",
     1.7 -                   FFStrError(ret););
     1.8 +                   FFStrError(ret));
     1.9        return 0;
    1.10     }
    1.11  
    1.12 @@ -942,9 +942,7 @@
    1.13     flags = FFEP_ALLPARAMS;
    1.14  
    1.15     /* Create the actual effect. */
    1.16 -   ret = FFEffectSetParameters(haptic->hwdata->device, effect->hweffect->ref,
    1.17 -                               &temp, flags);
    1.18 -
    1.19 +   ret = FFEffectSetParameters(effect->hweffect->ref, &temp, flags);
    1.20     if (ret != FF_OK) {
    1.21        SDL_SetError("Haptic: Unable to update effect: %s.", FFStrError(ret));
    1.22        goto err_update;