From 5d065e7efc1f9b59ddeed4bf07b45dfc0f9b222e Mon Sep 17 00:00:00 2001 From: libretroadmin Date: Sun, 8 Jan 2023 20:00:51 +0100 Subject: [PATCH] Buildfix --- gfx/video_driver.c | 6 ------ gfx/video_driver.h | 9 ++++++++- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/gfx/video_driver.c b/gfx/video_driver.c index 7958d09c49..72ebfb4e90 100644 --- a/gfx/video_driver.c +++ b/gfx/video_driver.c @@ -60,12 +60,6 @@ #define TIME_TO_FPS(last_time, new_time, frames) ((1000000.0f * (frames)) / ((new_time) - (last_time))) -struct aspect_ratio_elem -{ - float value; - char name[64]; -}; - typedef struct { struct string_list *list; diff --git a/gfx/video_driver.h b/gfx/video_driver.h index 54c4208cec..ae998977e7 100644 --- a/gfx/video_driver.h +++ b/gfx/video_driver.h @@ -880,7 +880,8 @@ typedef struct bool threaded; } video_driver_state_t; -typedef struct video_frame_delay_auto { +typedef struct video_frame_delay_auto +{ float refresh_rate; uint16_t frame_time_target; uint16_t frame_time_average; @@ -888,6 +889,12 @@ typedef struct video_frame_delay_auto { uint8_t delay_decrease; } video_frame_delay_auto_t; +struct aspect_ratio_elem +{ + float value; + char name[64]; +}; + extern struct aspect_ratio_elem aspectratio_lut[ASPECT_RATIO_END]; bool video_driver_has_windowed(void);