ref: 7f40ebaeb5056bb749a84048a795dcb65d9e478f
parent: 9c553a27c07f4163bb113dfa82d8e1709e65c7e2
author: Ori Bernstein <ori@eigenstate.org>
date: Sat Apr 25 07:00:27 EDT 2020
fix typos in time calculation the results of the time calculation were garbled -- and apparently negative on my system when testing, so the test passed when it shouldn't have.
--- a/sys/src/cmd/samterm/flayer.c
+++ b/sys/src/cmd/samterm/flayer.c
@@ -258,7 +258,7 @@
if(l->visible!=All)
flupfront(l);
- dt = l->click = mousep->msec;
+ dt = mousep->msec - l->click;
dx = abs(mousep->xy.x - clickpt.x);
dy = abs(mousep->xy.y - clickpt.y);
@@ -279,7 +279,6 @@
{ulong fp0, fp1;
- l->click = 0;
if(l->visible==None || !flprepare(l)){l->p0 = p0, l->p1 = p1;
return;
--
⑨