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.
This commit is contained in:
parent
d52d7bc121
commit
4adb1d68d1
1 changed files with 1 additions and 2 deletions
|
@ -258,7 +258,7 @@ flselect(Flayer *l)
|
||||||
|
|
||||||
if(l->visible!=All)
|
if(l->visible!=All)
|
||||||
flupfront(l);
|
flupfront(l);
|
||||||
dt = l->click = mousep->msec;
|
dt = mousep->msec - l->click;
|
||||||
dx = abs(mousep->xy.x - clickpt.x);
|
dx = abs(mousep->xy.x - clickpt.x);
|
||||||
dy = abs(mousep->xy.y - clickpt.y);
|
dy = abs(mousep->xy.y - clickpt.y);
|
||||||
|
|
||||||
|
@ -279,7 +279,6 @@ flsetselect(Flayer *l, long p0, long p1)
|
||||||
{
|
{
|
||||||
ulong fp0, fp1;
|
ulong fp0, fp1;
|
||||||
|
|
||||||
l->click = 0;
|
|
||||||
if(l->visible==None || !flprepare(l)){
|
if(l->visible==None || !flprepare(l)){
|
||||||
l->p0 = p0, l->p1 = p1;
|
l->p0 = p0, l->p1 = p1;
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue