wayland: calculate output PPI (pixels-per-inch)

This commit is contained in:
Daniel Eklöf 2019-11-26 18:55:03 +01:00
parent bc86cd61c7
commit 204bfa02f4
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
2 changed files with 12 additions and 3 deletions

View file

@ -27,6 +27,9 @@ struct monitor {
int width_px;
int height_px;
int x_ppi;
int y_ppi;
int scale;
float refresh;
};