shell: Move weston_curtain_create params into the struct

Given that we have a struct for argument params, we might as well use it
rather than have them split between the struct and native params. For
consistency between the implementations, this also includes a shift from
float to int positioning for the base offset within the compositor's
global co-ordinate space.

Signed-off-by: Daniel Stone <daniels@collabora.com>
This commit is contained in:
Daniel Stone
2022-01-17 14:05:06 +00:00
parent 3a298b0b05
commit d21563360a
5 changed files with 21 additions and 16 deletions
+3 -2
View File
@@ -2070,12 +2070,13 @@ create_black_surface(struct weston_compositor *ec,
{
struct weston_curtain_params curtain_params = {
.r = 0.0, .g = 0.0, .b = 0.0,
.x = x, .y = y,
.width = w, .height = h,
.surface_committed = black_surface_committed,
.get_label = black_surface_get_label,
.surface_private = fs_view,
};
struct weston_view *view;
view = weston_curtain_create(ec, &curtain_params, x, y, w, h);
struct weston_view *view = weston_curtain_create(ec, &curtain_params);
return view;
}