diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2023-06-26 13:51:04 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2023-06-29 13:38:23 +0000 |
| commit | 0a5073f5703e89cfa4219d5b532cb134f9def6d5 (patch) | |
| tree | 4f083a5222aa346943dfd9ec8315a6e26c5e3184 /wayland.h | |
| parent | render: maybe_resize(): convert local variable ‘scale’ to float (diff) | |
wayland: add wayl_surface_scale(), and wayl_win_scale()
These functions scale a surface+buffer.
For now, only using the legacy scaling
method (wl_surface_set_buffer_scale()).
Diffstat (limited to 'wayland.h')
| -rw-r--r-- | wayland.h | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -447,9 +447,14 @@ bool wayl_reload_xcursor_theme(struct seat *seat, float new_scale); void wayl_flush(struct wayland *wayl); void wayl_roundtrip(struct wayland *wayl); +bool wayl_fractional_scaling(const struct wayland *wayl); +void wayl_surface_scale( + const struct wayland *wayl, struct wl_surface *surf, float scale); + struct wl_window *wayl_win_init(struct terminal *term, const char *token); void wayl_win_destroy(struct wl_window *win); +void wayl_win_scale(struct wl_window *win); void wayl_win_alpha_changed(struct wl_window *win); bool wayl_win_set_urgent(struct wl_window *win); @@ -469,5 +474,3 @@ 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); |
