diff --git a/gfx/drivers_context/ps3_ctx.c b/gfx/drivers_context/ps3_ctx.c index 8f7e2a2822..bf9afadbb4 100644 --- a/gfx/drivers_context/ps3_ctx.c +++ b/gfx/drivers_context/ps3_ctx.c @@ -355,6 +355,18 @@ static bool gfx_ctx_ps3_bind_api(void *data, return api == GFX_CTX_OPENGL_API || GFX_CTX_OPENGL_ES_API; } +static void gx_ctx_ps3_get_video_output_size(void *data, unsigned *width, unsigned *height) +{ + unsigned width, height; + global_t *global = global_get_ptr(); + + if (!global) + return; + + gfx_ctx_ps3_get_resolution(global->console.screen.resolutions.current.id, + width, height); +} + static void gfx_ctx_ps3_get_video_output_prev(void *data) { global_t *global = global_get_ptr(); @@ -395,7 +407,7 @@ const gfx_ctx_driver_t gfx_ctx_ps3 = { gfx_ctx_ps3_set_swap_interval, gfx_ctx_ps3_set_video_mode, gfx_ctx_ps3_get_video_size, - NULL, /* get_video_output_size */ + gfx_ctx_ps3_get_video_output_size, gfx_ctx_ps3_get_video_output_prev, gfx_ctx_ps3_get_video_output_next, NULL, /* get_metrics */