Mercurial > sdl-ios-xcode
diff src/haptic/win32/SDL_syshaptic.c @ 2598:5b8f8151e66d gsoc2008_force_feedback
Fixed stupid mistake.
author | Edgar Simo <bobbens@gmail.com> |
---|---|
date | Tue, 05 Aug 2008 11:08:59 +0000 |
parents | 79e3b1a2c590 |
children | e9641d2250e5 |
line wrap: on
line diff
--- a/src/haptic/win32/SDL_syshaptic.c Tue Aug 05 11:04:30 2008 +0000 +++ b/src/haptic/win32/SDL_syshaptic.c Tue Aug 05 11:08:59 2008 +0000 @@ -868,10 +868,10 @@ /* * Gets the effect type from the generic SDL haptic effect wrapper. */ -REFGUID -SDL_SYS_HapticEffectType(struct haptic_effect * effect) +static REFGUID +SDL_SYS_HapticEffectType(SDL_HapticEffect * effect) { - switch (effect->effect.type) { + switch (effect->type) { case SDL_HAPTIC_CONSTANT: return &GUID_ConstantForce; @@ -925,7 +925,7 @@ HRESULT ret; /* Get the type. */ - REFGUID type = SDL_SYS_HapticEffectType(effect); + REFGUID type = SDL_SYS_HapticEffectType(base); if (type == NULL) { goto err_hweffect; }