diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2020-04-20 16:37:59 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2020-04-20 16:38:55 +0000 |
| commit | 6f83ef81e54b2695692c76a0a06c94c53cb7e315 (patch) | |
| tree | 92018fb060b312327486d2046b20e29c84e98375 /wayland.c | |
| parent | completions: zsh: -f,--font accepts multiple, comma separated values (diff) | |
render: use output's subpixel mode when rasterizing glyphs
Diffstat (limited to 'wayland.c')
| -rw-r--r-- | wayland.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -146,6 +146,7 @@ update_term_for_output_change(struct terminal *term) render_resize(term, term->width / term->scale, term->height / term->scale); term_font_dpi_changed(term); + term_font_subpixel_changed(term); wayl_reload_cursor_theme(term->wl, term); } @@ -193,6 +194,7 @@ output_geometry(void *data, struct wl_output *wl_output, int32_t x, int32_t y, mon->inch = sqrt(pow(mon->dim.mm.width, 2) + pow(mon->dim.mm.height, 2)) * 0.03937008; mon->make = make != NULL ? strdup(make) : NULL; mon->model = model != NULL ? strdup(model) : NULL; + mon->subpixel = subpixel; output_update_ppi(mon); } |
