src/haptic/win32/SDL_syshaptic.c
changeset 3011 8f4ed5ec2b06
parent 2786 6bacfecbf27e
child 3013 8cc00819c8d6
     1.1 --- a/src/haptic/win32/SDL_syshaptic.c	Fri Jan 09 20:41:31 2009 +0000
     1.2 +++ b/src/haptic/win32/SDL_syshaptic.c	Fri Jan 09 20:43:30 2009 +0000
     1.3 @@ -212,8 +212,8 @@
     1.4      /* Get capabilities. */
     1.5      SDL_hapticlist[SDL_numhaptics].capabilities.dwSize = sizeof(DIDEVCAPS);
     1.6      ret = IDirectInputDevice_GetCapabilities(device,
     1.7 -                                             &SDL_hapticlist[SDL_numhaptics].
     1.8 -                                             capabilities);
     1.9 +                                             &SDL_hapticlist
    1.10 +                                             [SDL_numhaptics].capabilities);
    1.11      if (FAILED(ret)) {
    1.12          /* DI_SetError("Getting device capabilities",ret); */
    1.13          IDirectInputDevice_Release(device);
    1.14 @@ -332,8 +332,8 @@
    1.15      /* Now get the IDirectInputDevice2 interface, instead. */
    1.16      ret = IDirectInputDevice_QueryInterface(device,
    1.17                                              &IID_IDirectInputDevice2,
    1.18 -                                            (LPVOID *) & haptic->hwdata->
    1.19 -                                            device);
    1.20 +                                            (LPVOID *) & haptic->
    1.21 +                                            hwdata->device);
    1.22      /* Done with the temporary one now. */
    1.23      IDirectInputDevice_Release(device);
    1.24      if (FAILED(ret)) {
    1.25 @@ -500,8 +500,8 @@
    1.26  SDL_SYS_HapticOpen(SDL_Haptic * haptic)
    1.27  {
    1.28      return SDL_SYS_HapticOpenFromInstance(haptic,
    1.29 -                                          SDL_hapticlist[haptic->index].
    1.30 -                                          instance);
    1.31 +                                          SDL_hapticlist[haptic->
    1.32 +                                                         index].instance);
    1.33  }
    1.34  
    1.35