# HG changeset patch # User Edgar Simo # Date 1216590923 0 # Node ID 4e055fa7acb92cd802f97a258b99c8cb4cd4dc05 # Parent f2649eaa552e685b6a171ad8bb3e1fe4b8d11754 Fixed some stupid mistakes. diff -r f2649eaa552e -r 4e055fa7acb9 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;