Re: [PATCH libinput] evdev: fix device_transform_ functions

2014-02-18 Thread Jonas Ã…dahl
On Tue, Feb 18, 2014 at 02:28:53PM +1000, Peter Hutterer wrote: > On Mon, Feb 17, 2014 at 01:42:52PM -0500, Benjamin Tissoires wrote: > > X and Y are li_fixed_t, which is 24.8 fixed point real number. > > li_fixed_t max is thus ~8388607. > > > > On a touchscreen with a range of 32767 values (like

Re: [PATCH libinput] evdev: fix device_transform_ functions

2014-02-17 Thread Peter Hutterer
On Mon, Feb 17, 2014 at 01:42:52PM -0500, Benjamin Tissoires wrote: > X and Y are li_fixed_t, which is 24.8 fixed point real number. > li_fixed_t max is thus ~8388607. > > On a touchscreen with a range of 32767 values (like a 3M sensor), and > mapped on monitor with a resolution of 1920x1080, we c

[PATCH libinput] evdev: fix device_transform_ functions

2014-02-17 Thread Benjamin Tissoires
X and Y are li_fixed_t, which is 24.8 fixed point real number. li_fixed_t max is thus ~8388607. On a touchscreen with a range of 32767 values (like a 3M sensor), and mapped on monitor with a resolution of 1920x1080, we currently have: (x - li_fixed_from_int(device->abs.min_x)) * width == 62912640