(context drivers) Make names uniform

This commit is contained in:
twinaphex 2020-07-20 18:22:33 +02:00
parent 7574a80391
commit 465e84d60c
12 changed files with 25 additions and 31 deletions

View File

@ -380,7 +380,7 @@ const gfx_ctx_driver_t gfx_ctx_android = {
NULL,
NULL,
NULL,
"android",
"egl_android",
android_gfx_ctx_get_flags,
android_gfx_ctx_set_flags,
android_gfx_ctx_bind_hw_render,

View File

@ -339,7 +339,7 @@ const gfx_ctx_driver_t gfx_ctx_emscripten = {
gfx_ctx_emscripten_init_egl_image_buffer,
gfx_ctx_emscripten_write_egl_image,
NULL,
"emscripten",
"egl_emscripten",
gfx_ctx_emscripten_get_flags,
gfx_ctx_emscripten_set_flags,
gfx_ctx_emscripten_bind_hw_render,

View File

@ -222,18 +222,9 @@ static bool gfx_ctx_mali_fbdev_bind_api(void *data,
return false;
}
static bool gfx_ctx_mali_fbdev_has_focus(void *data)
{
(void)data;
return true;
}
static bool gfx_ctx_mali_fbdev_has_focus(void *data) { return true; }
static bool gfx_ctx_mali_fbdev_suppress_screensaver(void *data, bool enable)
{
(void)data;
(void)enable;
return false;
}
static bool gfx_ctx_mali_fbdev_suppress_screensaver(void *data, bool enable) { return false; }
static void gfx_ctx_mali_fbdev_set_swap_interval(void *data,
int swap_interval)
@ -272,10 +263,7 @@ static uint32_t gfx_ctx_mali_fbdev_get_flags(void *data)
return flags;
}
static void gfx_ctx_mali_fbdev_set_flags(void *data, uint32_t flags)
{
(void)data;
}
static void gfx_ctx_mali_fbdev_set_flags(void *data, uint32_t flags) { }
static float gfx_ctx_mali_fbdev_get_refresh_rate(void *data)
{
@ -314,7 +302,7 @@ const gfx_ctx_driver_t gfx_ctx_mali_fbdev = {
NULL,
NULL,
NULL,
"mali-fbdev",
"fbdev_mali",
gfx_ctx_mali_fbdev_get_flags,
gfx_ctx_mali_fbdev_set_flags,
gfx_ctx_mali_fbdev_bind_hw_render,

View File

@ -186,9 +186,7 @@ static enum gfx_ctx_api gfx_ctx_opendingux_get_api(void *data)
static bool gfx_ctx_opendingux_bind_api(void *data,
enum gfx_ctx_api api, unsigned major, unsigned minor)
{
if (api == GFX_CTX_OPENGL_ES_API)
return true;
return false;
return (api == GFX_CTX_OPENGL_ES_API);
}
static void gfx_ctx_opendingux_set_flags(void *data, uint32_t flags) { }
@ -262,7 +260,7 @@ const gfx_ctx_driver_t gfx_ctx_opendingux_fbdev = {
NULL,
NULL,
NULL,
"opendingux-fbdev",
"fbdev_opendingux",
gfx_ctx_opendingux_get_flags,
gfx_ctx_opendingux_set_flags,
gfx_ctx_opendingux_bind_hw_render,

View File

@ -22,6 +22,10 @@
#include "../../config.h"
#endif
#ifdef HAVE_EGL
#include "../common/egl_common.h"
#endif
#include "../common/orbis_common.h"
#include "../../frontend/frontend_driver.h"
#include "../../configuration.h"
@ -301,7 +305,7 @@ const gfx_ctx_driver_t orbis_ctx = {
NULL,
NULL,
NULL,
"orbis",
"egl_orbis",
orbis_ctx_get_flags,
orbis_ctx_set_flags,
orbis_ctx_bind_hw_render,

View File

@ -448,7 +448,7 @@ const gfx_ctx_driver_t gfx_ctx_qnx = {
NULL,
NULL,
NULL,
"qnx",
"egl_qnx",
gfx_ctx_qnx_get_flags,
gfx_ctx_qnx_set_flags,
gfx_ctx_qnx_bind_hw_render,

View File

@ -431,7 +431,7 @@ const gfx_ctx_driver_t gfx_ctx_sdl_gl =
NULL,
NULL,
sdl_ctx_show_mouse,
"sdl_gl",
"gl_sdl",
sdl_ctx_get_flags,
sdl_ctx_set_flags,
NULL, /* bind_hw_render */

View File

@ -349,9 +349,10 @@ const gfx_ctx_driver_t switch_ctx = {
NULL,
NULL,
NULL,
"switch",
"egl_switch",
switch_ctx_get_flags,
switch_ctx_set_flags,
switch_ctx_bind_hw_render,
NULL,
NULL};
NULL
};

View File

@ -45,7 +45,10 @@
#include "../../verbosity.h"
#include "../../frontend/frontend_driver.h"
#ifdef HAVE_EGL
#include "../common/egl_common.h"
#endif
#include "../common/gl_common.h"
#ifdef HAVE_ANGLE
@ -280,7 +283,7 @@ const gfx_ctx_driver_t gfx_ctx_uwp = {
NULL,
NULL,
win32_show_cursor,
"uwp",
"egl_uwp",
gfx_ctx_uwp_get_flags, /* get flags */
NULL, /* set flags */
gfx_ctx_uwp_bind_hw_render,

View File

@ -710,7 +710,7 @@ const gfx_ctx_driver_t gfx_ctx_videocore = {
gfx_ctx_vc_image_buffer_init,
gfx_ctx_vc_image_buffer_write,
NULL,
"videocore",
"egl_videocore",
gfx_ctx_vc_get_flags,
gfx_ctx_vc_set_flags,
gfx_ctx_vc_bind_hw_render,

View File

@ -267,7 +267,7 @@ const gfx_ctx_driver_t gfx_ctx_vivante_fbdev = {
NULL,
NULL,
NULL,
"vivante-fbdev",
"fbdev_vivante",
gfx_ctx_vivante_get_flags,
gfx_ctx_vivante_set_flags,
gfx_ctx_vivante_bind_hw_render,

View File

@ -606,7 +606,7 @@ const gfx_ctx_driver_t gfx_ctx_x_egl =
NULL,
NULL,
gfx_ctx_xegl_show_mouse,
"x-egl",
"egl_x",
gfx_ctx_xegl_get_flags,
gfx_ctx_xegl_set_flags,
gfx_ctx_xegl_bind_hw_render,