diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2013-04-26 15:10:08 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2013-06-06 09:00:13 +1000 |
commit | 31e066546fd085725cc29e95867a04c70ce46ebc (patch) | |
tree | 0283703cf7956f0d5f15e2ae2eb59379805fb81e /configure.ac | |
parent | 14d89b9a466b521b985bc95fc4994637367362a8 (diff) |
dix: fix device scaling to use a [min,max[ range.
defmin/defmax are screen coords and thus use a min-inclusive, max-exclusive
range. device axes ranges are inclusive, so bump the max up by one to get the
scaling right.
This fixes off-by-one coordinate errors if the coordinate matrix is used to
bind the device to a fraction of the screen. It introduces an off-by-one
scaling error in the device coordinate range, but since most devices have a
higher resolution than the screen (e.g. a Wacom I4 has 5080 dpi) the effect
of this should be limited.
This error manifests when we have numScreens > 1, as the scaling from
desktop size back to screen size drops one device unit.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
(cherry picked from commit 756ab88d93542f0589c9bf46f40ccc57df64f0fd)
Diffstat (limited to 'configure.ac')
0 files changed, 0 insertions, 0 deletions