diff options
| author | Craig Barnes <craigbarnes@protonmail.com> | 2021-06-08 12:10:46 +0000 |
|---|---|---|
| committer | Craig Barnes <craigbarnes@protonmail.com> | 2021-06-08 12:10:46 +0000 |
| commit | b34d76f7113fcfb53b310a8e06fedab32d3cbf4c (patch) | |
| tree | 43fd01a6b6bffacd5df3ac850c1c4f37d5cdd74a | |
| parent | vt: \E#8: print āEā using the default attributes (diff) | |
terminal: fix compilation error when debug logging is enabled
Without this fix, setting LOG_ENABLE_DBG to 1 in terminal.c would
cause the following error:
> terminal.c:1787: 'struct terminal' has no member named 'font_scale'
The 'font_scale' member was removed in commit
2afc6782361d0deaa443234466775b1121feec8f.
| -rw-r--r-- | terminal.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1780,11 +1780,11 @@ term_font_dpi_changed(struct terminal *term, int old_scale) if (need_font_reload) { LOG_DBG("DPI/scale change: DPI-awareness=%s, " - "DPI: %.2f -> %.2f, scale: %d -> %d, " + "DPI: %.2f -> %.2f, scale: %d, " "sizing font based on monitor's %s", term->conf->dpi_aware == DPI_AWARE_AUTO ? "auto" : term->conf->dpi_aware == DPI_AWARE_YES ? "yes" : "no", - term->font_dpi, dpi, term->font_scale, term->scale, + term->font_dpi, dpi, term->scale, will_scale_using_dpi ? "DPI" : "scaling factor"); } |
