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;
|
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;
|
gfx_ctx_get_video_output_size(data, width, height);
|
||||||
const gfx_ctx_driver_t *ctx = gfx_ctx_get_ptr();
|
|
||||||
|
|
||||||
if (ctx->get_video_output_size)
|
|
||||||
ctx->get_video_output_size(gl, width, height);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void gl_get_video_output_prev(void *data)
|
static void gl_get_video_output_prev(void *data)
|
||||||
{
|
{
|
||||||
gl_t *gl = (gl_t*)data;
|
gfx_ctx_get_video_output_prev(data);
|
||||||
const gfx_ctx_driver_t *ctx = gfx_ctx_get_ptr();
|
|
||||||
|
|
||||||
if (ctx->get_video_output_prev)
|
|
||||||
ctx->get_video_output_prev(gl);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void gl_get_video_output_next(void *data)
|
static void gl_get_video_output_next(void *data)
|
||||||
{
|
{
|
||||||
gl_t *gl = (gl_t*)data;
|
gfx_ctx_get_video_output_next(data);
|
||||||
const gfx_ctx_driver_t *ctx = gfx_ctx_get_ptr();
|
|
||||||
|
|
||||||
if (ctx->get_video_output_next)
|
|
||||||
ctx->get_video_output_next(gl);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -99,6 +99,31 @@ void gfx_ctx_update_window_title(void *data)
|
||||||
ctx->update_window_title(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)
|
void gfx_ctx_swap_buffers(void *data)
|
||||||
{
|
{
|
||||||
const gfx_ctx_driver_t *ctx = gfx_ctx_get_ptr();
|
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_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_free(void *data);
|
||||||
|
|
||||||
void gfx_ctx_input_driver(void *data,
|
void gfx_ctx_input_driver(void *data,
|
||||||
|
|
Loading…
Reference in New Issue