[PATCH synaptics 15/21] More accurate extrapolated fake motion events
Daniel Stone
daniel at fooishbar.org
Thu Jun 23 07:57:15 PDT 2011
Hi,
On Wed, Jun 15, 2011 at 12:41:54PM +0800, Daniel Kurtz wrote:
> On Wed, Jun 15, 2011 at 1:06 AM, Daniel Stone <daniel at fooishbar.org> wrote:
> > - *dx = -xb1 * (HIST(0).millis - hw->millis);
> > - *dy = -yb1 * (HIST(0).millis - hw->millis);
> > + *dx = -xb1 * (start_time - hw->millis);
> > + *dy = -yb1 * (start_time - hw->millis);
>
> Why not like this... it is slightly easier on the brain, at least for me:
>
> + *dx = xb1 * (hw->millis - start_time);
> + *dy = yb1 * (hw->millis - start_time);
There's now a comment explaining this.
Cheers,
Daniel
More information about the xorg-devel
mailing list