From d3ee52b0f8dd0068735920d135022dbae30d3b5b Mon Sep 17 00:00:00 2001 From: akallabeth Date: Fri, 21 Jan 2022 17:24:32 +0100 Subject: [PATCH] Fix conversion of mous wheel valuet --- client/common/client.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/client/common/client.c b/client/common/client.c index 231051cd8..ebc5e1c08 100644 --- a/client/common/client.c +++ b/client/common/client.c @@ -1034,16 +1034,16 @@ BOOL freerdp_client_send_wheel_event(rdpClientContext* cctx, UINT16 mflags) if (mflags & PTR_FLAGS_WHEEL_NEGATIVE) value = -1 * (0x100 - value); + /* We have discrete steps, scale this so we can also support high + * resolution wheels. */ + value *= 0x10000; + if (mflags & PTR_FLAGS_WHEEL) { flags |= AINPUT_FLAGS_WHEEL; y = value; } - /* We have discrete steps, scale this so we can also support high - * resolution wheels. */ - value *= 0x10000; - if (mflags & PTR_FLAGS_HWHEEL) { flags |= AINPUT_FLAGS_WHEEL;