Fixed stupid mistake. gsoc2008_force_feedback
authorEdgar Simo <bobbens@gmail.com>
Tue, 05 Aug 2008 11:08:59 +0000
branchgsoc2008_force_feedback
changeset 2598 5b8f8151e66d
parent 2597 79e3b1a2c590
child 2599 e9641d2250e5
Fixed stupid mistake.
src/haptic/win32/SDL_syshaptic.c
--- 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;
    }