static int control(struct vo *vo, int *events, int request, void *data) { struct vo_wayland_state *wl = vo->wayland; int r = vo_wayland_control(vo, events, request, data); if (*events & VO_EVENT_RESIZE) egl_resize(wl); return r; }
static void swapGlBuffers_wayland(MPGLContext *ctx) { struct egl_context * egl_ctx = ctx->priv; struct vo_wayland_state *wl = ctx->vo->wayland; eglSwapBuffers(egl_ctx->egl.dpy, egl_ctx->egl_surface); if (wl->window.events & VO_EVENT_RESIZE) egl_resize(wl, egl_ctx); }
static int waylandgl_control(MPGLContext *ctx, int *events, int request, void *data) { struct vo_wayland_state *wl = ctx->vo->wayland; int r = vo_wayland_control(ctx->vo, events, request, data); if (*events & VO_EVENT_RESIZE) egl_resize(wl); return r; }