libweston/animation: Remove weston_fade_run unused argument

And with it, bump libweston to next major version, 14. We seems like
we never used that argument so better just removed it.

Signed-off-by: Marius Vlad <marius.vlad@collabora.com>
This commit is contained in:
Marius Vlad 2024-01-08 14:54:39 +02:00
parent b074186836
commit 04d9f7e738
4 changed files with 7 additions and 8 deletions

View file

@ -658,7 +658,7 @@ animate_focus_change(struct desktop_shell *shell, struct workspace *ws,
weston_view_move_to_layer(front, &ws->layer.view_list);
weston_view_move_to_layer(back, NULL);
ws->focus_animation =
weston_fade_run(front, front->alpha, 0.0, 300,
weston_fade_run(front, front->alpha, 0.0,
focus_animation_done, ws);
}
}
@ -2192,7 +2192,7 @@ desktop_surface_removed(struct weston_desktop_surface *desktop_surface,
/* unmap the "original" view, which is owned by
* libweston-desktop */
weston_view_move_to_layer(shsurf->view, NULL);
weston_fade_run(shsurf->wview_anim_fade, 1.0, 0.0, 300.0,
weston_fade_run(shsurf->wview_anim_fade, 1.0, 0.0,
fade_out_done, shsurf);
return;
@ -2283,7 +2283,7 @@ map(struct desktop_shell *shell, struct shell_surface *shsurf)
if (!shsurf->state.fullscreen && !shsurf->state.maximized) {
switch (shell->win_animation_type) {
case ANIMATION_FADE:
weston_fade_run(shsurf->view, 0.0, 1.0, 300.0, NULL, NULL);
weston_fade_run(shsurf->view, 0.0, 1.0, NULL, NULL);
break;
case ANIMATION_ZOOM:
weston_zoom_run(shsurf->view, 0.5, 1.0, NULL, NULL);
@ -3906,7 +3906,7 @@ shell_fade(struct desktop_shell *shell, enum fade_type type)
} else {
shell->fade.animation =
weston_fade_run(shell->fade.curtain->view,
1.0 - tint, tint, 300.0,
1.0 - tint, tint,
shell_fade_done, shell);
}
}

View file

@ -2411,8 +2411,7 @@ weston_zoom_run(struct weston_view *view, float start, float stop,
weston_view_animation_done_func_t done, void *data);
struct weston_view_animation *
weston_fade_run(struct weston_view *view,
float start, float end, float k,
weston_fade_run(struct weston_view *view, float start, float end,
weston_view_animation_done_func_t done, void *data);
struct weston_view_animation *

View file

@ -343,7 +343,7 @@ fade_frame(struct weston_view_animation *animation)
WL_EXPORT struct weston_view_animation *
weston_fade_run(struct weston_view *view,
float start, float end, float k,
float start, float end,
weston_view_animation_done_func_t done, void *data)
{
struct weston_view_animation *fade;

View file

@ -10,7 +10,7 @@ project('weston',
license: 'MIT/Expat',
)
libweston_major = 13
libweston_major = 14
# libweston_revision is manufactured to follow the autotools build's
# library file naming, thanks to libtool