Fixed some stupid mistakes. gsoc2008_force_feedback
authorEdgar Simo <bobbens@gmail.com>
Sun, 20 Jul 2008 21:55:23 +0000
branchgsoc2008_force_feedback
changeset 2542 4e055fa7acb9
parent 2541 f2649eaa552e
child 2543 3544a632064c
Fixed some stupid mistakes.
src/haptic/darwin/SDL_syshaptic.c
--- a/src/haptic/darwin/SDL_syshaptic.c	Sun Jul 20 21:50:01 2008 +0000
+++ b/src/haptic/darwin/SDL_syshaptic.c	Sun Jul 20 21:55:23 2008 +0000
@@ -301,7 +301,7 @@
    if (ret == FF_OK) supported |= SDL_HAPTIC_GAIN;
    else if (ret != FFERR_UNSUPPORTED) {
       SDL_SetError("Haptic: Unable to get if device supports gain: %s.",
-                   FFStrError(ret););
+                   FFStrError(ret));
       return 0;
    }
 
@@ -942,9 +942,7 @@
    flags = FFEP_ALLPARAMS;
 
    /* Create the actual effect. */
-   ret = FFEffectSetParameters(haptic->hwdata->device, effect->hweffect->ref,
-                               &temp, flags);
-
+   ret = FFEffectSetParameters(effect->hweffect->ref, &temp, flags);
    if (ret != FF_OK) {
       SDL_SetError("Haptic: Unable to update effect: %s.", FFStrError(ret));
       goto err_update;