Reorder static functions in vivante context

This commit is contained in:
Jean-André Santoni 2016-03-12 04:29:26 +07:00
parent 0e4a8dfd97
commit 0863a8eb84

View File

@ -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,