util: Check result of weston_surface_animation_run.
This commit is contained in:
committed by
Kristian Høgsberg
parent
5e48a85e6b
commit
7a92ea494c
@@ -265,6 +265,9 @@ weston_slide_run(struct weston_surface *surface, float start, float stop,
|
|||||||
|
|
||||||
animation = weston_surface_animation_run(surface, start, stop,
|
animation = weston_surface_animation_run(surface, start, stop,
|
||||||
slide_frame, done, data);
|
slide_frame, done, data);
|
||||||
|
if (!animation)
|
||||||
|
return NULL;
|
||||||
|
|
||||||
animation->spring.friction = 900;
|
animation->spring.friction = 900;
|
||||||
animation->spring.k = 300;
|
animation->spring.k = 300;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user