chiark
/
gitweb
/
~ianmdlvl
/
xf86-input-mtrack.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Sensitivity: Handle sensitivities < 1.0 without rounding errors
[xf86-input-mtrack.git]
/
driver
/
mtrack.c
diff --git
a/driver/mtrack.c
b/driver/mtrack.c
index 6bf1821bf3a2ac1f6685e5eae7bf5cc966fbcb8b..abc83c92f0bb8e9b9abf12d97406d8138111f39a 100644
(file)
--- a/
driver/mtrack.c
+++ b/
driver/mtrack.c
@@
-133,8
+133,8
@@
static int device_init(DeviceIntPtr dev, LocalDevicePtr local)
#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) >= 7
axes_labels[0],
#endif
#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) >= 7
axes_labels[0],
#endif
- mt->caps.abs[MTDEV_POSITION_X].minimum,
- mt->caps.abs[MTDEV_POSITION_X].maximum,
+ mt->caps.abs[MTDEV_POSITION_X].minimum
* mt->cfg.sensitivity_smalldiv
,
+ mt->caps.abs[MTDEV_POSITION_X].maximum
* mt->cfg.sensitivity_smalldiv
,
#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) >= 12
1, 0, 1, Absolute);
#else
#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) >= 12
1, 0, 1, Absolute);
#else
@@
-145,8
+145,8
@@
static int device_init(DeviceIntPtr dev, LocalDevicePtr local)
#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) >= 7
axes_labels[1],
#endif
#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) >= 7
axes_labels[1],
#endif
- mt->caps.abs[MTDEV_POSITION_Y].minimum,
- mt->caps.abs[MTDEV_POSITION_Y].maximum,
+ mt->caps.abs[MTDEV_POSITION_Y].minimum
* mt->cfg.sensitivity_smalldiv
,
+ mt->caps.abs[MTDEV_POSITION_Y].maximum
* mt->cfg.sensitivity_smalldiv
,
#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) >= 12
1, 0, 1, Absolute);
#else
#if GET_ABI_MAJOR(ABI_XINPUT_VERSION) >= 12
1, 0, 1, Absolute);
#else