util: Check result of weston_surface_animation_run.

This commit is contained in:
John Kåre Alsaker 2012-10-12 12:32:03 +02:00 committed by Kristian Høgsberg
parent 5e48a85e6b
commit 7a92ea494c

View File

@ -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;