diff options
author | Jaroslaw Siebert <y0g1@poczta.wp.pl> | 2007-12-28 16:16:01 +1030 |
---|---|---|
committer | Peter Hutterer <peter@cs.unisa.edu.au> | 2007-12-28 16:16:55 +1030 |
commit | 79a2199b8c753aeca6cc9cbbf69e568558a61853 (patch) | |
tree | a982d66e6a302f5fb8264b11b05ecdbe6e38e72d /src | |
parent | 0e04b7142a04fa5e4af57a8056c6010ba49c1359 (diff) |
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 <https://bugs.freedesktop.org/show_bug.cgi?id=13248>
Diffstat (limited to 'src')
-rw-r--r-- | src/xf86Elo.c | 5 |
1 files 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 */); |