From f3e700aa767d9fef8940049ecee95623c9a21754 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Wed, 18 Jan 2017 22:30:16 +0100 Subject: [PATCH] Add width/height members to video_frame_info --- gfx/video_driver.c | 2 ++ gfx/video_driver.h | 3 +++ 2 files changed, 5 insertions(+) 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