aboutsummaryrefslogtreecommitdiff
path: root/terminal.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-07-26 05:45:03 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-07-29 04:58:20 +0000
commit423bfd388a96e0e04061363773f3059c82d67d0a (patch)
treebcffe35bbd5b3fe1ee8394155696eb7eaa18f508 /terminal.h
parentwayland: calculate a single, scaled DPI value (diff)
term: store current font DPI as a float instead of an integer
FontConfig's DPI is a double, and using a float instead of an integer results in higher resolution.
Diffstat (limited to 'terminal.h')
-rw-r--r--terminal.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/terminal.h b/terminal.h
index 85f89abf..d82e3e93 100644
--- a/terminal.h
+++ b/terminal.h
@@ -223,7 +223,7 @@ struct terminal {
struct fcft_font *fonts[4];
struct config_font *font_sizes;
- int font_dpi;
+ float font_dpi;
enum fcft_subpixel font_subpixel;
tll(struct ptmx_buffer) ptmx_buffer;