diff options
Diffstat (limited to 'video/out/vo_gpu.c')
-rw-r--r-- | video/out/vo_gpu.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/video/out/vo_gpu.c b/video/out/vo_gpu.c index 70c874fc54..61696af0e4 100644 --- a/video/out/vo_gpu.c +++ b/video/out/vo_gpu.c @@ -168,7 +168,6 @@ static void get_and_update_ambient_lighting(struct gpu_priv *p) static int control(struct vo *vo, uint32_t request, void *data) { struct gpu_priv *p = vo->priv; - struct ra_swapchain *sw = p->ctx->swapchain; switch (request) { case VOCTRL_SET_PANSCAN: @@ -177,17 +176,6 @@ static int control(struct vo *vo, uint32_t request, void *data) case VOCTRL_SET_EQUALIZER: vo->want_redraw = true; return VO_TRUE; - case VOCTRL_SCREENSHOT_WIN: { - struct mp_image *screen = NULL; - if (sw->fns->screenshot) - screen = sw->fns->screenshot(sw); - if (!screen) - break; // redirect to backend - // set image parameters according to the display, if possible - screen->params.color = gl_video_get_output_colorspace(p->renderer); - *(struct mp_image **)data = screen; - return true; - } case VOCTRL_SCREENSHOT: { struct vo_frame *frame = vo_get_current_vo_frame(vo); if (frame) { |