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.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/video/out/opengl/context_drm_egl.c b/video/out/opengl/context_drm_egl.c
index ef7a0b598b..a6609681d3 100644
--- a/video/out/opengl/context_drm_egl.c
+++ b/video/out/opengl/context_drm_egl.c
@@ -370,11 +370,7 @@ static int drm_egl_control(struct MPGLContext *ctx, int *events, int request,
struct priv *p = ctx->priv;
switch (request) {
case VOCTRL_GET_DISPLAY_FPS: {
- double fps =
- p->kms->mode.clock
- * 1000.0
- / p->kms->mode.htotal
- / p->kms->mode.vtotal;
+ double fps = kms_get_display_fps(p->kms);
if (fps <= 0)
break;
*(double*)arg = fps;