mirror of
https://github.com/libretro/RetroArch
synced 2025-01-31 06:32:48 +00:00
Merge pull request #2785 from Kivutar/patch-2
Reorder static functions in vivante context
This commit is contained in:
commit
c5ed4f1f65
@ -94,6 +94,16 @@ error:
|
|||||||
return NULL;
|
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,
|
static void gfx_ctx_vivante_check_window(void *data, bool *quit,
|
||||||
bool *resize, unsigned *width, unsigned *height, unsigned frame_count)
|
bool *resize, unsigned *width, unsigned *height, unsigned frame_count)
|
||||||
{
|
{
|
||||||
@ -251,16 +261,6 @@ static void gfx_ctx_vivante_swap_buffers(void *data)
|
|||||||
#endif
|
#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 = {
|
const gfx_ctx_driver_t gfx_ctx_vivante_fbdev = {
|
||||||
gfx_ctx_vivante_init,
|
gfx_ctx_vivante_init,
|
||||||
gfx_ctx_vivante_destroy,
|
gfx_ctx_vivante_destroy,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user