tests/shell: change background color
authorPekka Paalanen <pekka.paalanen@collabora.co.uk>
Fri, 27 Jan 2017 16:30:25 +0000 (17:30 +0100)
committerPekka Paalanen <pekka.paalanen@collabora.co.uk>
Tue, 7 Feb 2017 11:26:26 +0000 (13:26 +0200)
Pick the color 0xCC336699 as AARRGGBB, as if blended on black. This is
the color used with developing the sub-surface shot tests.

No other big reason than it should not be black to have better chances
of catching blending problems.

Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
Reviewed-by: Micah Fedke <micah.fedke@collabora.co.uk>
Reviewed-by: Quentin Glidic <sardemff7+git@sardemff7.net>
tests/weston-test-desktop-shell.c

index 2cf2271..de84425 100644 (file)
@@ -204,7 +204,7 @@ wet_shell_init(struct weston_compositor *ec,
        if (dts->background_view == NULL)
                goto out_surface;
 
-       weston_surface_set_color(dts->background_surface, 0.0, 0.0, 0.0, 1);
+       weston_surface_set_color(dts->background_surface, 0.16, 0.32, 0.48, 1.);
        pixman_region32_fini(&dts->background_surface->opaque);
        pixman_region32_init_rect(&dts->background_surface->opaque, 0, 0, 2000, 2000);
        pixman_region32_fini(&dts->background_surface->input);