terminal: appky scale factor when force-resizing on font reload

If we don't, we'll end up e.g. increasing the window size when moving
the window between outputs with different scaling.

Closes #3
This commit is contained in:
Daniel Eklöf 2020-03-10 18:07:12 +01:00
parent 3bee031867
commit c8ea1d137e
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -525,7 +525,7 @@ term_set_fonts(struct terminal *term, struct 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);
render_resize_force(term, term->width, term->height);
render_resize_force(term, term->width / term->scale, term->height / term->scale);
return true;
}