diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2023-06-22 13:01:33 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2023-06-29 13:38:22 +0000 |
| commit | 913ae94cf99cb4a171ea69e6340b804a0e8c6a37 (patch) | |
| tree | 8b169c80d760919cc36e7e09dbc938052cd259c0 | |
| parent | wayland: csd_reload_font(): ‘scale’ is now a float (diff) | |
wayland: add wayl_fractional_scaling()
Returns true if fractional scaling is available.
| -rw-r--r-- | wayland.c | 10 | ||||
| -rw-r--r-- | wayland.h | 2 |
2 files changed, 12 insertions, 0 deletions
@@ -2048,3 +2048,13 @@ wayl_get_activation_token( return true; } #endif + +bool +wayl_fractional_scaling(const struct wayland *wayl) +{ +#if defined(HAVE_FRACTIONAL_SCALE) + return wayl->fractional_scale_manager != NULL; +#else + return false; +#endif +} @@ -469,3 +469,5 @@ bool wayl_get_activation_token( struct wayland *wayl, struct seat *seat, uint32_t serial, struct wl_window *win, activation_token_cb_t cb, void *cb_data); #endif + +bool wayl_fractional_scaling(const struct wayland *wayl); |
