From 79a2199b8c753aeca6cc9cbbf69e568558a61853 Mon Sep 17 00:00:00 2001 From: Jaroslaw Siebert Date: Fri, 28 Dec 2007 16:16:01 +1030 Subject: Bug #13248: use -1, -1 as min/max value for valuators. If we specify a min/max value for our valuators, the X server will clip any coordinates at these values. This fixes the second issue reported in #13248 X.Org Bugzilla #13248 --- src/xf86Elo.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/xf86Elo.c b/src/xf86Elo.c index a068c04..0dc7b5c 100644 --- a/src/xf86Elo.c +++ b/src/xf86Elo.c @@ -1348,11 +1348,12 @@ xf86EloControl(DeviceIntPtr dev, return !Success; } else { - InitValuatorAxisStruct(dev, 0, priv->min_x, priv->max_x, + /* I will map coordinates myself */ + InitValuatorAxisStruct(dev, 0, -1, -1, 9500, 0 /* min_res */, 9500 /* max_res */); - InitValuatorAxisStruct(dev, 1, priv->min_y, priv->max_y, + InitValuatorAxisStruct(dev, 1, -1, -1, 10500, 0 /* min_res */, 10500 /* max_res */); -- cgit v1.2.3