[input] properly convert delaybounds to deadlines

pull/2197/head
nick black 3 years ago
parent 82a2f19d67
commit 5c82d5b849
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

@ -2043,6 +2043,10 @@ delaybound_to_deadline(const struct timespec* ts, struct timespec* absdl){
gettimeofday(&tv, NULL);
absdl->tv_sec = ts->tv_sec + tv.tv_sec;
absdl->tv_nsec = ts->tv_nsec + tv.tv_usec * 1000;
if(absdl->tv_nsec > 1000000000){
++absdl->tv_sec;
absdl->tv_nsec -= 1000000000;
}
}
}

@ -103,7 +103,7 @@ auto perframe(struct ncvisual* ncv, struct ncvisual_options* vopts,
}else{
keyp = nc.get(false, &ni);
}
if(keyp == (uint32_t)-1){
if(keyp == 0){
break;
}
if(keyp == ' '){

Loading…
Cancel
Save