mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 22:20:21 +00:00
Implement get_video_size for DRM Go2
This commit is contained in:
parent
ce1e59615a
commit
623b925256
@ -267,6 +267,18 @@ static bool gfx_ctx_go2_drm_set_video_mode(void *data,
|
||||
return true;
|
||||
}
|
||||
|
||||
static void gfx_ctx_go2_drm_get_video_size(void *data,
|
||||
unsigned *width, unsigned *height)
|
||||
{
|
||||
gfx_ctx_go2_drm_data_t drm = (gfx_ctx_go2_drm_data_t)data;
|
||||
|
||||
if (!drm)
|
||||
return;
|
||||
|
||||
*width = drm->fb_width;
|
||||
*height = drm->fb_height;
|
||||
}
|
||||
|
||||
static void gfx_ctx_go2_drm_check_window(void *data, bool *quit,
|
||||
bool *resize, unsigned *width, unsigned *height)
|
||||
{
|
||||
@ -388,7 +400,7 @@ const gfx_ctx_driver_t gfx_ctx_go2_drm = {
|
||||
gfx_ctx_go2_drm_bind_api,
|
||||
gfx_ctx_go2_drm_swap_interval,
|
||||
gfx_ctx_go2_drm_set_video_mode,
|
||||
NULL, /* get_video_size */
|
||||
gfx_ctx_go2_drm_get_video_size,
|
||||
drm_get_refresh_rate,
|
||||
NULL, /* get_video_output_size */
|
||||
NULL, /* get_video_output_prev */
|
||||
|
Loading…
x
Reference in New Issue
Block a user