[PATCH synaptics 2/2] The correct maximum values for pressure and finger width
Peter Hutterer
peter.hutterer at who-t.net
Thu Aug 25 15:22:20 PDT 2011
On Thu, Aug 25, 2011 at 09:48:52PM +0600, Alexandr Shadchin wrote:
> 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
refresh my memory: why maxw = 15? maxp I understand but I don't know where
this limitation to 15/16 comes from.
Cheers,
Peter
More information about the xorg-devel
mailing list