shell: Add alpha to weston_curtain_create

Not all solid-colour views want to be opaque: sometimes we use them with
non-opaque alpha values in order to shade views underneath them.

Signed-off-by: Daniel Stone <daniels@collabora.com>
This commit is contained in:
Daniel Stone
2022-01-18 18:17:17 +00:00
parent d21563360a
commit e81b8d7cc9
5 changed files with 14 additions and 6 deletions
+1 -1
View File
@@ -80,7 +80,7 @@ static void
output_create_view(struct test_output *t_output)
{
struct weston_curtain_params curtain_params = {
.r = 0.5, .g = 0.5, .b = 0.5,
.r = 0.5, .g = 0.5, .b = 0.5, .a = 1.0,
.x = 0, .y = 0,
.width = 320, .height = 240,
.get_label = NULL,