scrcpy/app
Romain Vimont e8a565f9ea Fix touch events HiDPI-scaling
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-27 15:45:28 +02:00
..
src Fix touch events HiDPI-scaling 2020-06-27 15:45:28 +02:00
tests Handle repeating keycodes 2020-06-19 22:30:17 +02:00
meson.build Rename test names from "event" to "msg" 2020-06-11 23:06:02 +02:00
scrcpy.1 Add option for disabling screensaver 2020-06-18 21:35:28 +02:00