mirror of
https://github.com/mpv-player/mpv
synced 2024-11-07 01:47:00 +01:00
vo_drm: add window screenshots support
This commit is contained in:
parent
95a0488ac2
commit
5f21a68ce9
@ -607,6 +607,9 @@ static int control(struct vo *vo, uint32_t request, void *data)
|
||||
{
|
||||
struct priv *p = vo->priv;
|
||||
switch (request) {
|
||||
case VOCTRL_SCREENSHOT_WIN:
|
||||
*(struct mp_image**)data = mp_image_new_copy(p->cur_frame);
|
||||
return VO_TRUE;
|
||||
case VOCTRL_REDRAW_FRAME:
|
||||
draw_image(vo, p->last_input);
|
||||
return VO_TRUE;
|
||||
|
Loading…
Reference in New Issue
Block a user