term: set_fonts: describe why we force resize

This commit is contained in:
Daniel Eklöf 2020-07-13 15:01:09 +02:00
parent 3f55cf3d14
commit 3958d84069
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -552,6 +552,7 @@ term_set_fonts(struct terminal *term, struct fcft_font *fonts[static 4])
term->fonts[0]->ascent + term->fonts[0]->descent);
LOG_INFO("cell width=%d, height=%d", term->cell_width, term->cell_height);
/* Use force, since cell-width/height may have changed */
render_resize_force(term, term->width / term->scale, term->height / term->scale);
return true;
}