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-26 05:45:03 +0000
commitb08db1ef973bdb20d00e606b6dbb1aa5955eda66 (patch)
tree93c4e1ab21ad565c8dca282074b22c9e31c927a2 /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;