From 59cdfe50b261e06bdf04d2f7e2e18f6c19cbb26d Mon Sep 17 00:00:00 2001 From: wm4 Date: Wed, 11 Dec 2019 18:50:29 +0100 Subject: rpi: destroy fullscreen change handling Get rid of the legacy VOCTRL (which will be removed later). I'm not sure what exactly fullscreen was supposed to do (toggling between using the entire display, and what --geometry forced?), but I don't care, just get rid of the VOCTRL. PRs to fix regressions caused by this will be accepted, but personally I don't care since this is excessively fringe and obscure. --- video/out/opengl/context_rpi.c | 3 --- video/out/vo_rpi.c | 5 ----- 2 files changed, 8 deletions(-) diff --git a/video/out/opengl/context_rpi.c b/video/out/opengl/context_rpi.c index 570d43d99c..d91723b392 100644 --- a/video/out/opengl/context_rpi.c +++ b/video/out/opengl/context_rpi.c @@ -303,9 +303,6 @@ static int rpi_control(struct ra_ctx *ctx, int *events, int request, void *arg) case VOCTRL_SCREENSHOT_WIN: *(struct mp_image **)arg = take_screenshot(ctx); return VO_TRUE; - case VOCTRL_FULLSCREEN: - recreate_dispmanx(ctx); - return VO_TRUE; case VOCTRL_CHECK_EVENTS: if (atomic_fetch_and(&p->reload_display, 0)) { MP_WARN(ctx, "Recovering from display mode switch...\n"); diff --git a/video/out/vo_rpi.c b/video/out/vo_rpi.c index 2065151b1d..94bb30efe6 100644 --- a/video/out/vo_rpi.c +++ b/video/out/vo_rpi.c @@ -725,11 +725,6 @@ static int control(struct vo *vo, uint32_t request, void *data) struct priv *p = vo->priv; switch (request) { - case VOCTRL_FULLSCREEN: - if (p->renderer_enabled) - set_geometry(vo); - vo->want_redraw = true; - return VO_TRUE; case VOCTRL_SET_PANSCAN: if (p->renderer_enabled) resize(vo); -- cgit v1.2.3