mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-20 01:40:14 -05:00
render: add render_refresh()
This commit is contained in:
parent
10a7b94804
commit
ebf0a11fa0
5 changed files with 16 additions and 16 deletions
9
main.c
9
main.c
|
|
@ -716,8 +716,7 @@ main(int argc, char *const *argv)
|
|||
|
||||
if (ret == 0 || (timeout_ms != -1 && !(fds[1].revents & POLLIN))) {
|
||||
/* Delayed rendering */
|
||||
if (term.frame_callback == NULL)
|
||||
grid_render(&term);
|
||||
render_refresh(&term);
|
||||
}
|
||||
|
||||
/* Reset poll timeout to infinity */
|
||||
|
|
@ -809,8 +808,7 @@ main(int argc, char *const *argv)
|
|||
|
||||
term.flash.active = false;
|
||||
term_damage_view(&term);
|
||||
if (term.frame_callback == NULL)
|
||||
grid_render(&term);
|
||||
render_refresh(&term);
|
||||
}
|
||||
|
||||
if (fds[4].revents & POLLIN) {
|
||||
|
|
@ -838,8 +836,7 @@ main(int argc, char *const *argv)
|
|||
}
|
||||
}
|
||||
|
||||
if (term.frame_callback == NULL)
|
||||
grid_render(&term);
|
||||
render_refresh(&term);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue