… | |
… | |
1049 | make_current (); |
1049 | make_current (); |
1050 | |
1050 | |
1051 | display->flush (); |
1051 | display->flush (); |
1052 | |
1052 | |
1053 | if (want_refresh && !flush_ev.active) |
1053 | if (want_refresh && !flush_ev.active) |
1054 | flush_ev.start (1. / 60.); // refresh at max. 60 hz normally |
1054 | flush_ev.start (1. / 60.); // refresh at max. 60 Hz normally |
1055 | } |
1055 | } |
1056 | |
1056 | |
1057 | void |
1057 | void |
1058 | rxvt_term::flush_cb (ev::timer &w, int revents) |
1058 | rxvt_term::flush_cb (ev::timer &w, int revents) |
1059 | { |
1059 | { |
… | |
… | |
2227 | |
2227 | |
2228 | if (!option (Opt_jumpScroll) || refresh_count >= nrow - 1) |
2228 | if (!option (Opt_jumpScroll) || refresh_count >= nrow - 1) |
2229 | { |
2229 | { |
2230 | refresh_count = 0; |
2230 | refresh_count = 0; |
2231 | |
2231 | |
2232 | if (!option (Opt_skipScroll) || ev::ev_time () > ev::now () + 1. / 60.) |
2232 | if (!option (Opt_skipScroll) || ev_time () > ev::now () + 1. / 60.) |
2233 | { |
2233 | { |
2234 | refreshnow = true; |
2234 | refreshnow = true; |
2235 | ch = NOCHAR; |
2235 | ch = NOCHAR; |
2236 | break; |
2236 | break; |
2237 | } |
2237 | } |