mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 13:20:30 +00:00
Implement get_video_output_size
This commit is contained in:
parent
1c3ba76e67
commit
ad75d00bd4
@ -355,6 +355,18 @@ static bool gfx_ctx_ps3_bind_api(void *data,
|
|||||||
return api == GFX_CTX_OPENGL_API || GFX_CTX_OPENGL_ES_API;
|
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)
|
static void gfx_ctx_ps3_get_video_output_prev(void *data)
|
||||||
{
|
{
|
||||||
global_t *global = global_get_ptr();
|
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_swap_interval,
|
||||||
gfx_ctx_ps3_set_video_mode,
|
gfx_ctx_ps3_set_video_mode,
|
||||||
gfx_ctx_ps3_get_video_size,
|
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_prev,
|
||||||
gfx_ctx_ps3_get_video_output_next,
|
gfx_ctx_ps3_get_video_output_next,
|
||||||
NULL, /* get_metrics */
|
NULL, /* get_metrics */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user