Introduction
Introduction Statistics Contact Development Disclaimer Help
tMerge remote-tracking branch 'origin/master' into omaster - st - [fork] custom…
git clone git://src.adamsgaard.dk/st
Log
Files
Refs
README
LICENSE
---
commit 3d3c37bc70042cd2f4bbc8f6ea5fceb2311f0a32
parent 297c886b72f4e9093973aaa14b66d392f6196634
Author: Roberto E. Vargas Caballero <[email protected]>
Date: Mon, 28 Oct 2013 19:18:24 +0100
Merge remote-tracking branch 'origin/master' into omaster
Diffstat:
M st.c | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/st.c b/st.c
t@@ -3686,6 +3686,8 @@ run(void) {
gettimeofday(&last, NULL);
for(xev = actionfps;;) {
+ long deltatime;
+
FD_ZERO(&rfd);
FD_SET(cmdfd, &rfd);
FD_SET(xfd, &rfd);
t@@ -3719,8 +3721,9 @@ run(void) {
gettimeofday(&lastblink, NULL);
dodraw = 1;
}
- if(TIMEDIFF(now, last) \
- > (xev? (1000/xfps) : (1000/actionfps))) {
+ deltatime = TIMEDIFF(now, last);
+ if(deltatime > (xev? (1000/xfps) : (1000/actionfps))
+ || deltatime < 0) {
dodraw = 1;
last = now;
}
You are viewing proxied material from mx1.adamsgaard.dk. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.