mirror of
https://github.com/libretro/RetroArch
synced 2025-04-09 21:45:45 +00:00
Remove 'start' from video interface
This commit is contained in:
parent
71a23ac18e
commit
f149c387b9
1
driver.h
1
driver.h
@ -386,7 +386,6 @@ typedef struct video_driver
|
|||||||
const char *ident;
|
const char *ident;
|
||||||
|
|
||||||
#if defined(HAVE_RMENU) || defined(HAVE_RGUI) || defined(HAVE_RMENU_XUI)
|
#if defined(HAVE_RMENU) || defined(HAVE_RGUI) || defined(HAVE_RMENU_XUI)
|
||||||
void (*start)(void);
|
|
||||||
void (*restart)(void);
|
void (*restart)(void);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
26
gfx/gl.c
26
gfx/gl.c
@ -2404,31 +2404,6 @@ static bool gl_read_viewport(void *data, uint8_t *buffer)
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(HAVE_RGUI) || defined(HAVE_RMENU)
|
#if defined(HAVE_RGUI) || defined(HAVE_RMENU)
|
||||||
static void gl_get_poke_interface(void *data, const video_poke_interface_t **iface);
|
|
||||||
|
|
||||||
static void gl_start(void)
|
|
||||||
{
|
|
||||||
video_info_t video_info = {0};
|
|
||||||
|
|
||||||
// Might have to supply correct values here.
|
|
||||||
video_info.vsync = g_settings.video.vsync;
|
|
||||||
video_info.force_aspect = false;
|
|
||||||
video_info.smooth = g_settings.video.smooth;
|
|
||||||
video_info.input_scale = 2;
|
|
||||||
video_info.fullscreen = true;
|
|
||||||
|
|
||||||
if (g_settings.video.aspect_ratio_idx == ASPECT_RATIO_CUSTOM)
|
|
||||||
{
|
|
||||||
video_info.width = g_extern.console.screen.viewports.custom_vp.width;
|
|
||||||
video_info.height = g_extern.console.screen.viewports.custom_vp.height;
|
|
||||||
}
|
|
||||||
|
|
||||||
driver.video_data = gl_init(&video_info, &driver.input, &driver.input_data);
|
|
||||||
|
|
||||||
gl_t *gl = (gl_t*)driver.video_data;
|
|
||||||
gl_get_poke_interface(gl, &driver.video_poke);
|
|
||||||
}
|
|
||||||
|
|
||||||
static void gl_restart(void)
|
static void gl_restart(void)
|
||||||
{
|
{
|
||||||
gl_t *gl = (gl_t*)driver.video_data;
|
gl_t *gl = (gl_t*)driver.video_data;
|
||||||
@ -2748,7 +2723,6 @@ const video_driver_t video_gl = {
|
|||||||
"gl",
|
"gl",
|
||||||
|
|
||||||
#if defined(HAVE_RGUI) || defined(HAVE_RMENU)
|
#if defined(HAVE_RGUI) || defined(HAVE_RMENU)
|
||||||
gl_start,
|
|
||||||
gl_restart,
|
gl_restart,
|
||||||
#endif
|
#endif
|
||||||
gl_set_rotation,
|
gl_set_rotation,
|
||||||
|
@ -418,9 +418,7 @@ static void gx_efb_screenshot(void)
|
|||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static void gx_restart(void)
|
static void gx_restart(void) { }
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
static void *gx_init(const video_info_t *video,
|
static void *gx_init(const video_info_t *video,
|
||||||
const input_driver_t **input, void **input_data)
|
const input_driver_t **input, void **input_data)
|
||||||
@ -473,20 +471,6 @@ static void *gx_init(const video_info_t *video,
|
|||||||
return gx;
|
return gx;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void gx_get_poke_interface(void *data, const video_poke_interface_t **iface);
|
|
||||||
|
|
||||||
static void gx_start(void)
|
|
||||||
{
|
|
||||||
video_info_t video_info = {0};
|
|
||||||
|
|
||||||
video_info.vsync = g_settings.video.vsync;
|
|
||||||
|
|
||||||
driver.video_data = gx_init(&video_info, &driver.input, &driver.input_data);
|
|
||||||
|
|
||||||
gx_video_t *gx = (gx_video_t*)driver.video_data;
|
|
||||||
gx_get_poke_interface(gx, &driver.video_poke);
|
|
||||||
}
|
|
||||||
|
|
||||||
#define ASM_BLITTER
|
#define ASM_BLITTER
|
||||||
|
|
||||||
#ifdef ASM_BLITTER
|
#ifdef ASM_BLITTER
|
||||||
@ -1077,7 +1061,6 @@ const video_driver_t video_gx = {
|
|||||||
.ident = "gx",
|
.ident = "gx",
|
||||||
.set_rotation = gx_set_rotation,
|
.set_rotation = gx_set_rotation,
|
||||||
.viewport_info = gx_viewport_info,
|
.viewport_info = gx_viewport_info,
|
||||||
.start = gx_start,
|
|
||||||
.restart = gx_restart,
|
.restart = gx_restart,
|
||||||
.poke_interface = gx_get_poke_interface,
|
.poke_interface = gx_get_poke_interface,
|
||||||
};
|
};
|
||||||
|
@ -179,7 +179,6 @@ static void psp_free(void *data)
|
|||||||
}
|
}
|
||||||
|
|
||||||
#ifdef RARCH_CONSOLE
|
#ifdef RARCH_CONSOLE
|
||||||
static void psp_start(void) {}
|
|
||||||
static void psp_restart(void) {}
|
static void psp_restart(void) {}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -198,7 +197,6 @@ const video_driver_t video_psp1 = {
|
|||||||
"psp1",
|
"psp1",
|
||||||
|
|
||||||
#ifdef RARCH_CONSOLE
|
#ifdef RARCH_CONSOLE
|
||||||
psp_start,
|
|
||||||
psp_restart,
|
psp_restart,
|
||||||
NULL,
|
NULL,
|
||||||
NULL,
|
NULL,
|
||||||
|
@ -1127,23 +1127,6 @@ static void d3d_get_poke_interface(void *data, const video_poke_interface_t **if
|
|||||||
*iface = &d3d_poke_interface;
|
*iface = &d3d_poke_interface;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void xdk_d3d_start(void)
|
|
||||||
{
|
|
||||||
video_info_t video_info = {0};
|
|
||||||
|
|
||||||
video_info.vsync = g_settings.video.vsync;
|
|
||||||
video_info.force_aspect = false;
|
|
||||||
video_info.smooth = g_settings.video.smooth;
|
|
||||||
video_info.input_scale = 2;
|
|
||||||
video_info.fullscreen = true;
|
|
||||||
video_info.rgb32 = false;
|
|
||||||
|
|
||||||
driver.video_data = xdk_d3d_init(&video_info, &driver.input, &driver.input_data);
|
|
||||||
|
|
||||||
xdk_d3d_video_t *d3d = (xdk_d3d_video_t*)driver.video_data;
|
|
||||||
d3d_get_poke_interface(d3d, &driver.video_poke);
|
|
||||||
}
|
|
||||||
|
|
||||||
static void xdk_d3d_restart(void)
|
static void xdk_d3d_restart(void)
|
||||||
{
|
{
|
||||||
xdk_d3d_video_t *d3d = (xdk_d3d_video_t*)driver.video_data;
|
xdk_d3d_video_t *d3d = (xdk_d3d_video_t*)driver.video_data;
|
||||||
@ -1179,7 +1162,6 @@ const video_driver_t video_xdk_d3d = {
|
|||||||
#endif
|
#endif
|
||||||
xdk_d3d_free,
|
xdk_d3d_free,
|
||||||
"xdk_d3d",
|
"xdk_d3d",
|
||||||
xdk_d3d_start,
|
|
||||||
xdk_d3d_restart,
|
xdk_d3d_restart,
|
||||||
xdk_d3d_set_rotation,
|
xdk_d3d_set_rotation,
|
||||||
NULL, /* viewport_info */
|
NULL, /* viewport_info */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user