struct weston_compositor, fade.animation);
struct weston_surface *surface;
- if (animation->frame_counter == 0)
+ if (animation->frame_counter <= 1)
compositor->fade.spring.timestamp = msecs;
surface = compositor->fade.surface;
wl_list_init(&frame_callback_list);
wl_list_for_each_safe(animation, next, &output->animation_list, link) {
- animation->frame(animation, output, msecs);
animation->frame_counter++;
+ animation->frame(animation, output, msecs);
}
}
weston_zoom_frame_z(struct weston_animation *animation,
struct weston_output *output, uint32_t msecs)
{
- if (animation->frame_counter == 0)
+ if (animation->frame_counter <= 1)
output->zoom.spring_z.timestamp = msecs;
weston_spring_update(&output->zoom.spring_z, msecs);
struct weston_surface *es = zoom->surface;
GLfloat scale;
- if (animation->frame_counter == 0)
+ if (animation->frame_counter <= 1)
zoom->spring.timestamp = msecs;
weston_spring_update(&zoom->spring, msecs);
struct weston_surface *es = fade->surface;
float fade_factor;
- if (animation->frame_counter == 0)
+ if (animation->frame_counter <= 1)
fade->spring.timestamp = msecs;
weston_spring_update(&fade->spring, msecs);