[PATCH] [rdp compositor] handle mouse wheel

Bill Spitzak spitzak at gmail.com
Mon Jun 3 13:41:20 PDT 2013


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;


More information about the wayland-devel mailing list