Commit bc36b50c authored by Ivo Ivanov's avatar Ivo Ivanov Committed by Alexandre Julliard

winebus.sys: Scale the force feedback gain value to the Linux FF_GAIN range.

parent 6613e6bb
...@@ -945,7 +945,7 @@ static NTSTATUS lnxev_device_physical_device_set_gain(struct unix_device *iface, ...@@ -945,7 +945,7 @@ static NTSTATUS lnxev_device_physical_device_set_gain(struct unix_device *iface,
{ {
.type = EV_FF, .type = EV_FF,
.code = FF_GAIN, .code = FF_GAIN,
.value = percent, .value = 0xffff * percent / 100,
}; };
TRACE("iface %p, percent %#x.\n", iface, percent); TRACE("iface %p, percent %#x.\n", iface, percent);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment