aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-03-10 17:07:12 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-03-10 17:07:12 +0000
commitaa1aa0c09df44c286a12d7663decfc95988bc9df (patch)
treefd47d7214d67f14ff582144d80be069f59c28f71
parentclient: log path we actually tried to connect to (and failed) (diff)
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
-rw-r--r--terminal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/terminal.c b/terminal.c
index 0a7e5b5e..2a742268 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;
}