aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCraig Barnes <craigbarnes@protonmail.com>2021-06-08 12:10:46 +0000
committerCraig Barnes <craigbarnes@protonmail.com>2021-06-08 12:10:46 +0000
commitb34d76f7113fcfb53b310a8e06fedab32d3cbf4c (patch)
tree43fd01a6b6bffacd5df3ac850c1c4f37d5cdd74a
parentvt: \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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/terminal.c b/terminal.c
index 8a7dd826..3d6c20d4 100644
--- a/terminal.c
+++ b/terminal.c
@@ -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");
}