From b34d76f7113fcfb53b310a8e06fedab32d3cbf4c Mon Sep 17 00:00:00 2001 From: Craig Barnes Date: Tue, 8 Jun 2021 13:10:46 +0100 Subject: [PATCH] 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. --- terminal.c | 4 ++-- 1 file 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"); }