Fix audio/video statistics display flickering in certain Windows platforms

Recent member addition caused struct misalignment.
This commit is contained in:
Hugo Hromic 2020-07-31 10:25:14 +01:00
parent 7046daf53d
commit 879e469a50

View File

@ -1143,6 +1143,12 @@ typedef struct video_frame_info
int crt_switch_center_adjust;
int crt_switch_porch_adjust;
/* TODO/FIXME - nasty hack needed for struct misalignment in Windows X64 -
* otherwise the audio/video statistics display glitches after the recent
* addition of the above 'crt_switch_porch_adjust' member
*/
char placeholder;
unsigned hard_sync_frames;
unsigned aspect_ratio_idx;
unsigned max_swapchain_images;