diff options
author | Ander Conselvan de Oliveira <ander.conselvan.de.oliveira@intel.com> | 2013-02-13 16:06:37 +0200 |
---|---|---|
committer | Kristian Høgsberg <krh@bitplanet.net> | 2013-02-13 13:52:25 -0500 |
commit | 4c65da5fc0dd19b253d8de4dfaf67a678f558b35 (patch) | |
tree | 2ad2e61893d9834d4e7a55ede7c32089fe9e4d90 | |
parent | c4a42ca6b50ac0543b62e7967b615ac6d3de5289 (diff) |
compositor: Init fade surface color properly
When fading in, if a repaint was triggered after a call to
weston_compositor_fade() but before the first call to fade_frame(),
the fade surface wouldn't be drawn because its alpha channel wasn't
initialized properly.
-rw-r--r-- | src/compositor.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compositor.c b/src/compositor.c index 994f814..764d622 100644 --- a/src/compositor.c +++ b/src/compositor.c @@ -1226,7 +1226,7 @@ weston_compositor_fade(struct weston_compositor *compositor, float tint) return; weston_surface_configure(surface, 0, 0, 8192, 8192); - weston_surface_set_color(surface, 0.0, 0.0, 0.0, 0.0); + weston_surface_set_color(surface, 0.0, 0.0, 0.0, 1.0 - tint); wl_list_insert(&compositor->fade_layer.surface_list, &surface->layer_link); weston_surface_update_transform(surface); |