[PATCH weston 1/2] compositor: Init fade surface color properly
Kristian Høgsberg
hoegsberg at gmail.com
Thu Feb 14 08:51:37 PST 2013
On Wed, Feb 13, 2013 at 04:06:37PM +0200, Ander Conselvan de Oliveira wrote:
> 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.
That's a nice catch, applied.
Kristian
> ---
> src/compositor.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> 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);
> --
> 1.7.10.4
>
> _______________________________________________
> wayland-devel mailing list
> wayland-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/wayland-devel
More information about the wayland-devel
mailing list