mirror of https://github.com/Genymobile/scrcpy
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
e8a565f9ea
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
|
4 years ago | |
---|---|---|
.. | ||
android | 6 years ago | |
sys | 5 years ago | |
util | 4 years ago | |
cli.c | 4 years ago | |
cli.h | 5 years ago | |
command.c | 5 years ago | |
command.h | 5 years ago | |
common.h | 5 years ago | |
compat.h | 5 years ago | |
control_msg.c | 4 years ago | |
control_msg.h | 4 years ago | |
controller.c | 4 years ago | |
controller.h | 5 years ago | |
decoder.c | 5 years ago | |
decoder.h | 5 years ago | |
device.c | 5 years ago | |
device.h | 5 years ago | |
device_msg.c | 4 years ago | |
device_msg.h | 4 years ago | |
event_converter.c | 5 years ago | |
event_converter.h | 5 years ago | |
events.h | 6 years ago | |
file_handler.c | 5 years ago | |
file_handler.h | 5 years ago | |
fps_counter.c | 5 years ago | |
fps_counter.h | 5 years ago | |
icon.xpm | ||
input_manager.c | 4 years ago | |
input_manager.h | 4 years ago | |
main.c | 4 years ago | |
opengl.c | 5 years ago | |
opengl.h | 5 years ago | |
receiver.c | 4 years ago | |
receiver.h | 5 years ago | |
recorder.c | 4 years ago | |
recorder.h | 4 years ago | |
scrcpy.c | 4 years ago | |
scrcpy.h | 4 years ago | |
screen.c | 4 years ago | |
screen.h | 4 years ago | |
server.c | 4 years ago | |
server.h | 4 years ago | |
stream.c | 5 years ago | |
stream.h | 5 years ago | |
tiny_xpm.c | 5 years ago | |
tiny_xpm.h | 5 years ago | |
video_buffer.c | 5 years ago | |
video_buffer.h | 5 years ago |