Explorar o código

Patched to compile on Windows.

Ryan C. Gordon %!s(int64=12) %!d(string=hai) anos
pai
achega
a614f18666
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/haptic/windows/SDL_syshaptic.c

+ 1 - 1
src/haptic/windows/SDL_syshaptic.c

@@ -636,7 +636,7 @@ SDL_SYS_JoystickIsHaptic(SDL_Joystick * joystick)
 int
 SDL_SYS_JoystickSameHaptic(SDL_Haptic * haptic, SDL_Joystick * joystick)
 {
-    if ((joystick->hwdata->bXInputHaptic != haptic->hwdata->bXInputHaptic) {
+    if (joystick->hwdata->bXInputHaptic != haptic->hwdata->bXInputHaptic) {
         return 0;  /* one is XInput, one is not; not the same device. */
     } else if (joystick->hwdata->bXInputHaptic) {  /* XInput */
         return (haptic->hwdata->userid == joystick->hwdata->userid);