mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-09 05:33:58 -04:00
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:
parent
9049488acc
commit
aa1aa0c09d
1 changed files with 1 additions and 1 deletions
|
|
@ -525,7 +525,7 @@ term_set_fonts(struct terminal *term, struct font *fonts[static 4])
|
||||||
term->fonts[0]->ascent + term->fonts[0]->descent);
|
term->fonts[0]->ascent + term->fonts[0]->descent);
|
||||||
LOG_INFO("cell width=%d, height=%d", term->cell_width, term->cell_height);
|
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;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue