diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2021-05-13 09:10:51 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2021-05-17 15:55:49 +0000 |
| commit | 2afc6782361d0deaa443234466775b1121feec8f (patch) | |
| tree | b1b3931407dc8097d39e890cad03a1b51cb9776c /wayland.c | |
| parent | changelog: fonts sometimes not being reloaded with the correct scaling factor (diff) | |
term: get rid of term->font_scale, use term->scale only
We only needed term->font_scale to be able to detect scaling factor
changes (term->font_scale != term->scale).
But, we already have the old scaling factor in all places where
term_font_dpi_changed() is called, so let’s pass the old scaling
factor as an argument instead.
Diffstat (limited to 'wayland.c')
| -rw-r--r-- | wayland.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -285,8 +285,10 @@ update_term_for_output_change(struct terminal *term) if (tll_length(term->window->on_outputs) == 0) return; + int old_scale = term->scale; + render_resize(term, term->width / term->scale, term->height / term->scale); - term_font_dpi_changed(term); + term_font_dpi_changed(term, old_scale); term_font_subpixel_changed(term); } |
