From 968ba1a6c51dfbd4c221e6601ab2208e60f1cc5d Mon Sep 17 00:00:00 2001 From: Edgar Simo Date: Sun, 20 Jul 2008 21:55:23 +0000 Subject: [PATCH] Fixed some stupid mistakes. --- src/haptic/darwin/SDL_syshaptic.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/haptic/darwin/SDL_syshaptic.c b/src/haptic/darwin/SDL_syshaptic.c index 035fde8db..2775825e0 100644 --- a/src/haptic/darwin/SDL_syshaptic.c +++ b/src/haptic/darwin/SDL_syshaptic.c @@ -301,7 +301,7 @@ GetSupportedFeatures(FFDeviceObjectReference device, 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 @@ SDL_SYS_HapticUpdateEffect(SDL_Haptic * haptic, 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;