summaryrefslogtreecommitdiffstats
path: root/video/out/opengl/context_drm_egl.c
diff options
context:
space:
mode:
Diffstat (limited to 'video/out/opengl/context_drm_egl.c')
-rw-r--r--video/out/opengl/context_drm_egl.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/video/out/opengl/context_drm_egl.c b/video/out/opengl/context_drm_egl.c
index 86ce57122c..4bae27f1a7 100644
--- a/video/out/opengl/context_drm_egl.c
+++ b/video/out/opengl/context_drm_egl.c
@@ -880,6 +880,11 @@ static int drm_egl_control(struct ra_ctx *ctx, int *events, int request,
*(double*)arg = fps;
return VO_TRUE;
}
+ case VOCTRL_GET_DISPLAY_RES: {
+ ((int *)arg)[0] = p->kms->mode.mode.hdisplay;
+ ((int *)arg)[1] = p->kms->mode.mode.vdisplay;
+ return VO_TRUE;
+ }
case VOCTRL_PAUSE:
ctx->vo->want_redraw = true;
p->paused = true;