[krh/weston/next 8/8] util: Check result of weston_surface_animation_run.
Kristian Høgsberg
hoegsberg at gmail.com
Tue Oct 16 08:52:17 PDT 2012
On Fri, Oct 12, 2012 at 12:32:03PM +0200, John Kåre Alsaker wrote:
> ---
> src/util.c | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/src/util.c b/src/util.c
> index 4390e2e..f18281c 100644
> --- a/src/util.c
> +++ b/src/util.c
> @@ -265,6 +265,9 @@ weston_slide_run(struct weston_surface *surface, float start, float stop,
>
> animation = weston_surface_animation_run(surface, start, stop,
> slide_frame, done, data);
> + if(!animation)
> + return NULL;
> +
> animation->spring.friction = 900;
> animation->spring.k = 300;
Applied, with the usual extra space thrown in.
Kristian
>
> --
> 1.7.12.2
>
> _______________________________________________
> 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