Remove images when reflow happens.

This commit is contained in:
Nicholas Marriott 2019-12-09 15:41:56 +00:00
parent 2006b7a563
commit cf071ffecd

View File

@ -225,9 +225,11 @@ screen_resize(struct screen *s, u_int sx, u_int sy, int reflow)
if (sy != screen_size_y(s))
screen_resize_y(s, sy);
if (reflow)
if (reflow) {
image_free_all(s);
screen_reflow(s, sx);
}
}
static void
screen_resize_y(struct screen *s, u_int sy)