From 879e469a5041684d5d0cb9e8dc4e645e68ca50df Mon Sep 17 00:00:00 2001 From: Hugo Hromic Date: Fri, 31 Jul 2020 10:25:14 +0100 Subject: [PATCH] Fix audio/video statistics display flickering in certain Windows platforms Recent member addition caused struct misalignment. --- retroarch.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/retroarch.h b/retroarch.h index c5e34f1540..af4bb44290 100644 --- a/retroarch.h +++ b/retroarch.h @@ -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;