diff --git a/gfx/video_driver.c b/gfx/video_driver.c index 34bed5063a..cdbd829932 100644 --- a/gfx/video_driver.c +++ b/gfx/video_driver.c @@ -2140,6 +2140,8 @@ void video_driver_frame(const void *data, unsigned width, video_driver_build_info(&video_info); video_driver_threaded_lock(); + video_info.width = video_driver_width; + video_info.height = video_driver_height; video_info.frame_count = video_driver_frame_count; video_driver_frame_count++; video_driver_threaded_unlock(); diff --git a/gfx/video_driver.h b/gfx/video_driver.h index 906deea80e..5bd08e8d1f 100644 --- a/gfx/video_driver.h +++ b/gfx/video_driver.h @@ -105,6 +105,9 @@ typedef struct video_frame_info char window_text[128]; char fps_text[128]; uint64_t frame_count; + + unsigned width; + unsigned height; } video_frame_info_t; /* Optionally implemented interface to poke more