X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=st.c;h=a104a504f3e12cfebbe839225bf1c2a6a114af64;hb=f27b44b7c271bda4ad3a0c4043bb709e0a4e4fbb;hp=a4f467d0c76a3241a885dd854150648a62ab00fd;hpb=6f4cfa5136d354f3901871b71e460ba9f0f182a3;p=st.git diff --git a/st.c b/st.c index a4f467d..a104a50 100644 --- a/st.c +++ b/st.c @@ -3440,7 +3440,6 @@ void redraw(int timeout) { struct timespec tv = {0, timeout * 1000}; - tfulldirt(); draw(); if(timeout > 0) { @@ -3738,8 +3737,8 @@ run(void) { else cresize(xw.fw, xw.fh); - gettimeofday(&lastblink, NULL); gettimeofday(&last, NULL); + lastblink = last; for(xev = actionfps;;) { long deltatime; @@ -3774,7 +3773,7 @@ run(void) { if(blinktimeout && TIMEDIFF(now, lastblink) > blinktimeout) { tsetdirtattr(ATTR_BLINK); term.mode ^= MODE_BLINK; - gettimeofday(&lastblink, NULL); + lastblink = now; dodraw = 1; } deltatime = TIMEDIFF(now, last);