wayland: refactor: surface_scale(): pass wl_window pointer, instead of wayland global

This commit is contained in:
Daniel Eklöf 2023-06-26 21:06:47 +02:00
parent c309c9f572
commit d71e588800
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
3 changed files with 13 additions and 13 deletions

View file

@ -456,10 +456,10 @@ void wayl_roundtrip(struct wayland *wayl);
bool wayl_fractional_scaling(const struct wayland *wayl);
void wayl_surface_scale(
const struct wayland *wayl, const struct wayl_surface *surf,
const struct wl_window *win, const struct wayl_surface *surf,
const struct buffer *buf, float scale);
void wayl_surface_scale_explicit_width_height(
const struct wayland *wayl, const struct wayl_surface *surf,
const struct wl_window *win, const struct wayl_surface *surf,
int width, int height, float scale);
struct wl_window *wayl_win_init(struct terminal *term, const char *token);