changeset 2603:a84ce5ae8936 gsoc2008_force_feedback

Fixed mistake in CONVERT.
author Edgar Simo <bobbens@gmail.com>
date Tue, 05 Aug 2008 15:56:35 +0000
parents f578389c9ead
children 4eee4d565368
files src/haptic/darwin/SDL_syshaptic.c src/haptic/win32/SDL_syshaptic.c
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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.
  */
--- 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.
  */