scrcpy/app
Romain Vimont fb5e619636 Fix touch events HiDPI-scaling [TODO: rebase on dev]
Touch events were HiDPI-scaled twice:
 - once because the position (provided as floats between 0 and 1) were
   converted in pixels using the drawable size (not the window size)
 - once due to screen_convert_to_frame_coords()

One possible fix could be to compute the position in pixels from the
window size instead, but this would unnecessarily round the event
position to the nearest window coordinates (instead of drawable
coordinates).

Instead, expose two separate functions to convert to frame coordinates
from either window or drawable coordinates.

Fixes #1536 <https://github.com/Genymobile/scrcpy/issues/1536>
Refs #15 <https://github.com/Genymobile/scrcpy/issues/15>
Refs e40532a376
2020-06-25 09:02:17 +02:00
..
src Fix touch events HiDPI-scaling [TODO: rebase on dev] 2020-06-25 09:02:17 +02:00
tests Paste on "set clipboard" if possible 2020-05-25 20:59:21 +02:00
meson.build Enable trilinear filtering for OpenGL 2020-04-15 17:39:51 +02:00
scrcpy.1 Mention stay awake limitation 2020-05-28 23:07:28 +02:00