mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-04-03 07:15:29 -04:00
render: force a full redraw when we cannot reuse last buffer
This commit is contained in:
parent
4a35aa9724
commit
8091f7c781
1 changed files with 5 additions and 1 deletions
6
main.c
6
main.c
|
|
@ -415,8 +415,12 @@ grid_render(struct context *c)
|
||||||
|
|
||||||
static struct buffer *last_buf = NULL;
|
static struct buffer *last_buf = NULL;
|
||||||
if (last_buf != buf) {
|
if (last_buf != buf) {
|
||||||
if (last_buf != NULL)
|
if (last_buf != NULL) {
|
||||||
LOG_WARN("new buffer");
|
LOG_WARN("new buffer");
|
||||||
|
|
||||||
|
/* Force a full refresh */
|
||||||
|
term_damage_all(&c->term);
|
||||||
|
}
|
||||||
last_buf = buf;
|
last_buf = buf;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue