Start using the new wl_fixed_t type properly
authorLaszlo Agocs <laszlo.p.agocs@nokia.com>
Wed, 9 May 2012 08:25:44 +0000 (11:25 +0300)
committerLaszlo Agocs <laszlo.p.agocs@nokia.com>
Wed, 9 May 2012 12:17:07 +0000 (14:17 +0200)
commit7f71672e27a2cbb7fb19333b77d7b3e4d4a068b9
tree605ccf104302781f2646c416c5317cf583c14950
parent9bda431e60b5626b7aeb01dcfa6fcb183ee17258
Start using the new wl_fixed_t type properly

The mouse and touch coordinates cannot just be treated as integers
anymore, they need to be converted from/to double using the helper
functions. Some necessary QPoint -> QPointF changes have also been
made.

For the Qt-specific touch extension we will not switch to wl_fixed_t
though. This is because the precision is unfortunately quite small
(factor of 256 vs. 10000).

Change-Id: I23deaaffe478a39495b12d336985bc62e38a6af4
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
13 files changed:
examples/qwindow-compositor/qwindowcompositor.cpp
examples/qwindow-compositor/qwindowcompositor.h
src/compositor/compositor_api/waylandinput.cpp
src/compositor/compositor_api/waylandinput.h
src/compositor/wayland_wrapper/wlinputdevice.cpp
src/compositor/wayland_wrapper/wlinputdevice.h
src/compositor/wayland_wrapper/wlshellsurface.cpp
src/plugins/platforms/wayland/qwaylanddatadevicemanager.cpp
src/plugins/platforms/wayland/qwaylanddatadevicemanager.h
src/plugins/platforms/wayland/qwaylandinputdevice.cpp
src/plugins/platforms/wayland/qwaylandinputdevice.h
tests/auto/client/mockinput.cpp
wayland_sha1.txt