mirror of
https://github.com/mpv-player/mpv
synced 2025-01-11 09:29:29 +00:00
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.
This commit is contained in:
parent
b6fa63b01e
commit
59cdfe50b2
@ -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");
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user