mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-04-08 08:20:59 -04:00
wayland: refactor: wayl_surface_scale(): pass wayl_surface pointer
Instead of passing a raw wl_surface pointer, pass a wayl_surface pointer. This is needed later, when using fractional scaling to scale the surface (since then we need the surface’s viewport object).
This commit is contained in:
parent
ba46a039ac
commit
434fd6aa1f
3 changed files with 32 additions and 37 deletions
|
|
@ -455,7 +455,7 @@ 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);
|
||||
const struct wayland *wayl, const struct wayl_surface *surf, float scale);
|
||||
|
||||
struct wl_window *wayl_win_init(struct terminal *term, const char *token);
|
||||
void wayl_win_destroy(struct wl_window *win);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue