summaryrefslogtreecommitdiff
path: root/libs/renderengine/RenderEngine.cpp
diff options
context:
space:
mode:
author arthurhung <arthurhung@google.com> 2020-12-29 20:28:15 +0800
committer Arthur Hung <arthurhung@google.com> 2021-01-07 01:04:20 +0000
commita36b28e432b09dcdab69a7f28d66d55d0b5cc28b (patch)
tree4633fe826574841a6c039b7a6812033e527bd223 /libs/renderengine/RenderEngine.cpp
parent57563a1020fefe9645e4d52a4a9d9ebdcab6d222 (diff)
Fix coordinate error after rotation and scaling in TouchInputMapper
The 'rotateAndScale' will transform raw coordinate into surface coordinate, but the raw (x, y) values range would be defined in RawPointerAxes, so we have to transform the raw event using the RawPointerAxes and the scaling ratio into surface coordinate, then calculate the offset by the surface frame. Test: atest inputflinger_test Bug: 176138152 Change-Id: I2d428fcbdc4bb879525754aafef05ebebbf131c5
Diffstat (limited to 'libs/renderengine/RenderEngine.cpp')
0 files changed, 0 insertions, 0 deletions