clients: Use the correct wheel rotation value
authorPascal Nowack <Pascal.Nowack@gmx.de>
Wed, 10 Feb 2021 17:50:51 +0000 (18:50 +0100)
committerakallabeth <akallabeth@users.noreply.github.com>
Thu, 25 Feb 2021 08:51:41 +0000 (09:51 +0100)
commit0f4ca4c3fb57a0092395cba486fa8929e182f6cf
tree6c6544d2e5ac92f302b7d018dd843ac3e60f77df
parent97327cbf333924a82bb6734f6e052908523fde00
clients: Use the correct wheel rotation value

For the negative scrolling direction, RDP uses the two's complement,
instead of the positive wheel value with the negative flag.
xfreerdp currently uses the positive wheel value in addition to the
negative flag, which results in a wrong wheel value on the server side
(136 instead of 120).

Fix this, by using the correct wheel rotation value, which is in the
two's complement.

(cherry picked from commit 1087a5e1a64cb591efb44b67cfa5a97a7f40aaf7)
client/Mac/MRDPView.h
client/Mac/MRDPView.m
client/Wayland/wlf_input.c
client/Windows/wf_event.c
client/X11/xf_client.c