aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--st.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/st.c b/st.c
index 50b58a7..d0a6218 100644
--- a/st.c
+++ b/st.c
@@ -3687,6 +3687,8 @@ run(void) {
3687 gettimeofday(&last, NULL); 3687 gettimeofday(&last, NULL);
3688 3688
3689 for(xev = actionfps;;) { 3689 for(xev = actionfps;;) {
3690 long deltatime;
3691
3690 FD_ZERO(&rfd); 3692 FD_ZERO(&rfd);
3691 FD_SET(cmdfd, &rfd); 3693 FD_SET(cmdfd, &rfd);
3692 FD_SET(xfd, &rfd); 3694 FD_SET(xfd, &rfd);
@@ -3720,8 +3722,9 @@ run(void) {
3720 gettimeofday(&lastblink, NULL); 3722 gettimeofday(&lastblink, NULL);
3721 dodraw = 1; 3723 dodraw = 1;
3722 } 3724 }
3723 if(TIMEDIFF(now, last) \ 3725 deltatime = TIMEDIFF(now, last);
3724 > (xev? (1000/xfps) : (1000/actionfps))) { 3726 if(deltatime > (xev? (1000/xfps) : (1000/actionfps))
3727 || deltatime < 0) {
3725 dodraw = 1; 3728 dodraw = 1;
3726 last = now; 3729 last = now;
3727 } 3730 }