aboutsummaryrefslogtreecommitdiff
path: root/wayland.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2023-06-26 19:06:47 +0000
committerDaniel Eklöf <daniel@ekloef.se>2023-06-29 13:38:24 +0000
commitd71e588800fea0f7b7815cc5ce51ded752070b95 (patch)
tree45512c374e6c47cfc0e579c75705eb69e397a6a2 /wayland.h
parentwayland: surface_scale(): assert surface width/height is a multiple of scale (diff)
wayland: refactor: surface_scale(): pass wl_window pointer, instead of wayland global
Diffstat (limited to 'wayland.h')
-rw-r--r--wayland.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/wayland.h b/wayland.h
index 9736ea4d..7305ade7 100644
--- a/wayland.h
+++ b/wayland.h
@@ -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);