Mercurial > sdl-ios-xcode
changeset 2542:4e055fa7acb9 gsoc2008_force_feedback
Fixed some stupid mistakes.
author | Edgar Simo <bobbens@gmail.com> |
---|---|
date | Sun, 20 Jul 2008 21:55:23 +0000 |
parents | f2649eaa552e |
children | 3544a632064c |
files | src/haptic/darwin/SDL_syshaptic.c |
diffstat | 1 files changed, 2 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- 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;