commit ae759b3
Michael Forney
·
2019-12-24 19:42:43 +0000 UTC
parent 3d21c27
surface: Only allow buffer_scale=1
1 files changed,
+2,
-1
+2,
-1
1@@ -270,7 +270,8 @@ set_buffer_transform(struct wl_client *client, struct wl_resource *surface, int3
2 static void
3 set_buffer_scale(struct wl_client *client, struct wl_resource *surface, int32_t scale)
4 {
5- wl_resource_post_error(surface, WL_SURFACE_ERROR_INVALID_SCALE, "buffer scale not supported");
6+ if (scale != 1)
7+ wl_resource_post_error(surface, WL_SURFACE_ERROR_INVALID_SCALE, "buffer scale not supported");
8 }
9
10 static void