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-14 16:02:09 -0500 |
commit | 48a9160426f305ce1593b271f2cbcf3ab68d5462 (patch) | |
tree | cf89b24065fe3bcdfab1d4dd4a213e8e853bcd7a | |
parent | c4831be22d801ce34d478b731dd1100d7db78fb5 (diff) | |
download | weston-48a9160426f305ce1593b271f2cbcf3ab68d5462.tar.gz |
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 c2e53878..bb129d69 100644 --- a/src/compositor.c +++ b/src/compositor.c @@ -1112,7 +1112,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); |