shithub: treason

Download patch

ref: eee770d0ddad7bcbce81ef84e33c45d20f5a10be
parent: a59ebb695f6e50298e8361fd3d40fd6cf0996ba8
author: Sigrid Solveig Haflínudóttir <ftrvxmtrx@gmail.com>
date: Mon Dec 14 10:39:41 EST 2020

fix frame display time calculation

--- a/main.c
+++ b/main.c
@@ -59,9 +59,9 @@
 	if(lastframe == 0)
 		lastframe = x;
 
-	end = lastframe + f->dt - dispdelay;
-	if(x >= end+dispdelay){
-		late = x - (end+dispdelay);
+	end = lastframe + f->dt;
+	if(x+dispdelay >= end){
+		late = x+dispdelay - end;
 		if(late > 0 && framedrop)
 			goto drop;
 	}else{