aboutsummaryrefslogtreecommitdiff
path: root/terminal.c
diff options
context:
space:
mode:
Diffstat (limited to 'terminal.c')
-rw-r--r--terminal.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/terminal.c b/terminal.c
index 1b082100..06f47685 100644
--- a/terminal.c
+++ b/terminal.c
@@ -826,9 +826,9 @@ get_font_dpi(const struct terminal *term)
: &tll_front(term->wl->monitors);
if (term_fractional_scaling(term))
- return mon->dpi.physical;
+ return mon != NULL ? mon->dpi.physical : 96.;
else
- return mon->dpi.scaled;
+ return mon != NULL ? mon->dpi.scaled : 96.;
}
static enum fcft_subpixel