# HG changeset patch # User Edgar Simo # Date 1217951795 0 # Node ID a84ce5ae893618ef1f6b5e0c51d5876313b09204 # Parent f578389c9ead508e8b13c469dc2bd689e5bc9919 Fixed mistake in CONVERT. diff -r f578389c9ead -r a84ce5ae8936 src/haptic/darwin/SDL_syshaptic.c --- a/src/haptic/darwin/SDL_syshaptic.c Tue Aug 05 11:41:04 2008 +0000 +++ b/src/haptic/darwin/SDL_syshaptic.c Tue Aug 05 15:56:35 2008 +0000 @@ -571,7 +571,7 @@ } } -#define CONVERT(x) (((x)*10000) / 0xFFFF ) +#define CONVERT(x) (((x)*10000) / 0x7FFF) /* * Creates the FFEFFECT from a SDL_HapticEffect. */ diff -r f578389c9ead -r a84ce5ae8936 src/haptic/win32/SDL_syshaptic.c --- a/src/haptic/win32/SDL_syshaptic.c Tue Aug 05 11:41:04 2008 +0000 +++ b/src/haptic/win32/SDL_syshaptic.c Tue Aug 05 15:56:35 2008 +0000 @@ -584,7 +584,7 @@ } } -#define CONVERT(x) (((x)*10000) / 0xFFFF ) +#define CONVERT(x) (((x)*10000) / 0x7FFF) /* * Creates the DIEFFECT from a SDL_HapticEffect. */