Christoph Frick : dinput: No longer check for value exceeding have(min|max) in map_axis.

Alexandre Julliard julliard at wine.codeweavers.com
Wed Jan 17 05:21:37 CST 2007


Module: wine
Branch: master
Commit: ffdea40f2cb5505c6f0ce7e976c47b07adfb75d6
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=ffdea40f2cb5505c6f0ce7e976c47b07adfb75d6

Author: Christoph Frick <frick at sc-networks.de>
Date:   Mon Jan 15 12:09:06 2007 +0100

dinput: No longer check for value exceeding have(min|max) in map_axis.

---

 dlls/dinput/joystick_linuxinput.c |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)

diff --git a/dlls/dinput/joystick_linuxinput.c b/dlls/dinput/joystick_linuxinput.c
index db51236..1f98d6d 100644
--- a/dlls/dinput/joystick_linuxinput.c
+++ b/dlls/dinput/joystick_linuxinput.c
@@ -587,9 +587,6 @@ map_axis(JoystickImpl* This, int axis, i
     int	wmax = This->props[axis].wantmax;
     int ret;
 
-    if (val > hmax) This->props[axis].havemax = hmax = val;
-    if (val < hmin) This->props[axis].havemin = hmin = val;
-
     /* map the value from the hmin-hmax range into the wmin-wmax range */
     ret = MulDiv( val - hmin, wmax - wmin, hmax - hmin ) + wmin;
 




More information about the wine-cvs mailing list