Add width/height members to video_frame_info

This commit is contained in:
twinaphex 2017-01-18 22:30:16 +01:00
parent 885f30b429
commit f3e700aa76
2 changed files with 5 additions and 0 deletions

View File

@ -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();

View File

@ -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