[dinput 5/5] No longer check for value exeed have(min|max) in
map_axis
Christoph Frick
frick at sc-networks.de
Mon Jan 15 05:09:06 CST 2007
No longer check for value exeed 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 e188a05..d536aea 100644
--- a/dlls/dinput/joystick_linuxinput.c
+++ b/dlls/dinput/joystick_linuxinput.c
@@ -589,9 +589,6 @@ map_axis(JoystickImpl* This, int axis, int val) {
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;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 163 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20070115/ab5e8f31/attachment.pgp
More information about the wine-patches
mailing list