From c8ea1d137ef280b1a25ec8685e38bcd9c47a17d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Tue, 10 Mar 2020 18:07:12 +0100 Subject: [PATCH] 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 --- terminal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/terminal.c b/terminal.c index 7fc177f0..3803e847 100644 --- a/terminal.c +++ b/terminal.c @@ -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; }