diff --git a/gfx/drivers_context/vivante_fbdev_ctx.c b/gfx/drivers_context/vivante_fbdev_ctx.c index 370a570e17..8e180bbdae 100644 --- a/gfx/drivers_context/vivante_fbdev_ctx.c +++ b/gfx/drivers_context/vivante_fbdev_ctx.c @@ -94,6 +94,16 @@ error: return NULL; } +static void gfx_ctx_vivante_get_video_size(void *data, + unsigned *width, unsigned *height) +{ + vivante_ctx_data_t *viv = (vivante_ctx_data_t*)data; + +#ifdef HAVE_EGL + egl_get_video_size(&viv->egl, width, height); +#endif +} + static void gfx_ctx_vivante_check_window(void *data, bool *quit, bool *resize, unsigned *width, unsigned *height, unsigned frame_count) { @@ -251,16 +261,6 @@ static void gfx_ctx_vivante_swap_buffers(void *data) #endif } -static void gfx_ctx_vivante_get_video_size(void *data, - unsigned *width, unsigned *height) -{ - vivante_ctx_data_t *viv = (vivante_ctx_data_t*)data; - -#ifdef HAVE_EGL - egl_get_video_size(&viv->egl, width, height); -#endif -} - const gfx_ctx_driver_t gfx_ctx_vivante_fbdev = { gfx_ctx_vivante_init, gfx_ctx_vivante_destroy,