[dev] [st] [PATCH 6/6] Remove deltatime variable.

From: noname <noname_AT_inventati.org>
Date: Sat, 18 Apr 2015 16:56:54 +0000

---
 st.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/st.c b/st.c
index e10815f..41b932d 100644
--- a/st.c
+++ b/st.c
_AT_@ -3915,7 +3915,6 @@ run(void) {
 	int xfd = XConnectionNumber(xw.dpy), xev, blinkset = 0;
 	bool dodraw;
 	struct timespec drawtimeout, *tv = NULL, now, last, lastblink;
-	long deltatime;
 
 	/* Waiting for window mapping */
 	do {
_AT_@ -3967,8 +3966,7 @@ run(void) {
 			lastblink = now;
 			dodraw = true;
 		}
-		deltatime = TIMEDIFF(now, last);
-		if(deltatime > 1000 / (xev ? xfps : actionfps)) {
+		if(TIMEDIFF(now, last) > 1000 / (xev ? xfps : actionfps)) {
 			dodraw = true;
 			last = now;
 		}
-- 
1.8.4
Received on Sat Apr 18 2015 - 18:56:54 CEST

This archive was generated by hypermail 2.3.0 : Sat Apr 18 2015 - 19:00:10 CEST