Fix conversion of mous wheel valuet

This commit is contained in:
akallabeth 2022-01-21 17:24:32 +01:00 committed by akallabeth
parent d4be1717c2
commit d3ee52b0f8

View File

@ -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;