[PATCH synaptics 2/2] The correct maximum values for pressure and finger width
Alexandr Shadchin
alexandr.shadchin at gmail.com
Thu Aug 25 08:48:52 PDT 2011
Signed-off-by: Alexandr Shadchin <Alexandr.Shadchin at gmail.com>
---
src/synaptics.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/synaptics.c b/src/synaptics.c
index 3c08b18..6918330 100644
--- a/src/synaptics.c
+++ b/src/synaptics.c
@@ -246,7 +246,7 @@ SanitizeDimensions(InputInfoPtr pInfo)
if (priv->minp >= priv->maxp)
{
priv->minp = 0;
- priv->maxp = 256;
+ priv->maxp = 255;
xf86IDrvMsg(pInfo, X_PROBED,
"invalid pressure range. defaulting to %d - %d\n",
@@ -256,7 +256,7 @@ SanitizeDimensions(InputInfoPtr pInfo)
if (priv->minw >= priv->maxw)
{
priv->minw = 0;
- priv->maxw = 16;
+ priv->maxw = 15;
xf86IDrvMsg(pInfo, X_PROBED,
"invalid finger width range. defaulting to %d - %d\n",
--
1.7.6
More information about the xorg-devel
mailing list