[PATCH] [rdp compositor] handle mouse wheel
Hardening
rdp.effort at gmail.com
Mon Jun 3 13:49:13 PDT 2013
Le 03/06/2013 22:41, Bill Spitzak a écrit :
> Hardening wrote:
>
>> +#define DEFAULT_AXIS_STEP_DISTANCE wl_fixed_from_int(10)
>
>> + axis = DEFAULT_AXIS_STEP_DISTANCE * ((flags & 0xff) / 120);
>
> This can only make the fixed numbers 0, 10.0, and 20.0. Is this correct?
>
> A wild guess is that this is actually what is wanted:
>
> axis = (DEFAULT_AXIS_STEP_DISTANCE * (flags & 0xff)) / 120;
You were faster to notice than me to correct.
Patch in a next mail.
More information about the wayland-devel
mailing list