mirror of
https://github.com/libretro/RetroArch
synced 2025-02-20 15:40:44 +00:00
Go through gfx_ctx_get_video_output wrapper functions
This commit is contained in:
parent
234baf09bd
commit
f65f56fdf4
@ -3147,31 +3147,20 @@ static struct video_shader *gl_get_current_shader(void *data)
|
||||
return (gl && gl->shader) ? gl->shader->get_current_shader() : NULL;
|
||||
}
|
||||
|
||||
static void gl_get_video_output_size(void *data, unsigned *width, unsigned *height)
|
||||
static void gl_get_video_output_size(void *data,
|
||||
unsigned *width, unsigned *height)
|
||||
{
|
||||
gl_t *gl = (gl_t*)data;
|
||||
const gfx_ctx_driver_t *ctx = gfx_ctx_get_ptr();
|
||||
|
||||
if (ctx->get_video_output_size)
|
||||
ctx->get_video_output_size(gl, width, height);
|
||||
gfx_ctx_get_video_output_size(data, width, height);
|
||||
}
|
||||
|
||||
static void gl_get_video_output_prev(void *data)
|
||||
{
|
||||
gl_t *gl = (gl_t*)data;
|
||||
const gfx_ctx_driver_t *ctx = gfx_ctx_get_ptr();
|
||||
|
||||
if (ctx->get_video_output_prev)
|
||||
ctx->get_video_output_prev(gl);
|
||||
gfx_ctx_get_video_output_prev(data);
|
||||
}
|
||||
|
||||
static void gl_get_video_output_next(void *data)
|
||||
{
|
||||
gl_t *gl = (gl_t*)data;
|
||||
const gfx_ctx_driver_t *ctx = gfx_ctx_get_ptr();
|
||||
|
||||
if (ctx->get_video_output_next)
|
||||
ctx->get_video_output_next(gl);
|
||||
gfx_ctx_get_video_output_next(data);
|
||||
}
|
||||
|
||||
|
||||
|
@ -99,6 +99,31 @@ void gfx_ctx_update_window_title(void *data)
|
||||
ctx->update_window_title(data);
|
||||
}
|
||||
|
||||
void gfx_ctx_get_video_output_size(void *data,
|
||||
unsigned *width, unsigned *height)
|
||||
{
|
||||
const gfx_ctx_driver_t *ctx = gfx_ctx_get_ptr();
|
||||
|
||||
if (ctx->get_video_output_size)
|
||||
ctx->get_video_output_size(data, width, height);
|
||||
}
|
||||
|
||||
void gfx_ctx_get_video_output_prev(void *data)
|
||||
{
|
||||
const gfx_ctx_driver_t *ctx = gfx_ctx_get_ptr();
|
||||
|
||||
if (ctx->get_video_output_prev)
|
||||
ctx->get_video_output_prev(data);
|
||||
}
|
||||
|
||||
void gfx_ctx_get_video_output_next(void *data)
|
||||
{
|
||||
const gfx_ctx_driver_t *ctx = gfx_ctx_get_ptr();
|
||||
|
||||
if (ctx->get_video_output_next)
|
||||
ctx->get_video_output_next(data);
|
||||
}
|
||||
|
||||
void gfx_ctx_swap_buffers(void *data)
|
||||
{
|
||||
const gfx_ctx_driver_t *ctx = gfx_ctx_get_ptr();
|
||||
|
@ -238,6 +238,13 @@ void gfx_ctx_swap_interval(void *data, unsigned interval);
|
||||
|
||||
void gfx_ctx_bind_hw_render(void *data, bool enable);
|
||||
|
||||
void gfx_ctx_get_video_output_size(void *data,
|
||||
unsigned *width, unsigned *height);
|
||||
|
||||
void gfx_ctx_get_video_output_prev(void *data);
|
||||
|
||||
void gfx_ctx_get_video_output_next(void *data);
|
||||
|
||||
void gfx_ctx_free(void *data);
|
||||
|
||||
void gfx_ctx_input_driver(void *data,
|
||||
|
Loading…
x
Reference in New Issue
Block a user