aboutsummaryrefslogtreecommitdiff
path: root/wayland.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-07-26 05:41:57 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-07-29 04:58:16 +0000
commit9601ed7cfb120e993cb3fd5db7d47bb3a7c49bec (patch)
tree22e6552cddb0aa1e3c2ac40acf5192fe26a01545 /wayland.h
parentinput: margins are not selectable (diff)
wayland: calculate a single, scaled DPI value
Previously, we calculated the monitors horizontal and vertical PPI values. For font sizing, we used the vertical PPI value. It seems however, that using the diagonal PPI value, i.e. diagonal_px / diagonal_inch, gives more consistent results. This is still a PPI value, but since it is intended to be used as a FontConfig DPI value, name it 'dpi'.
Diffstat (limited to 'wayland.h')
-rw-r--r--wayland.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/wayland.h b/wayland.h
index dbf63c1b..88be3d71 100644
--- a/wayland.h
+++ b/wayland.h
@@ -236,6 +236,8 @@ struct monitor {
} scaled;
} ppi;
+ float dpi;
+
int scale;
float refresh;
enum wl_output_subpixel subpixel;