summaryrefslogtreecommitdiff
path: root/libs/gui/BufferQueueThreadState.cpp
diff options
context:
space:
mode:
author chaviw <chaviw@google.com> 2020-01-28 13:13:06 -0800
committer chaviw <chaviw@google.com> 2020-01-30 11:31:52 -0800
commit8235709159abca9504968f08825840d3e1f5d61a (patch)
tree55e6493706ea7344c0c17457a8f50b35da45df20 /libs/gui/BufferQueueThreadState.cpp
parent7a1ddcfc599f243c03e9669e97b0e826dc37e0c8 (diff)
Send raw coordinates to client but scale when getting relative
The current code scales the coordinates before sending to the client. This changes the coordinates so when the client requests raw coordinates, they are actually getting the scaled ones. Instead, don't scale the coordinates in InputDispatcher and instead send the scale factors to the client. When the client requests raw coordinates, they will get the unscaled ones. When they request relative coordinates, they will get the coordinates with the scale and offset applied. Fixes: 140786233 Test: atest libinput_tests Change-Id: I99b9ce7236511f595a8780506bf5aea8c75ed577
Diffstat (limited to 'libs/gui/BufferQueueThreadState.cpp')
0 files changed, 0 insertions, 0 deletions