From dc7c4fea2ddbb307e159e87bbbc6732b11c44749 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sun, 15 Apr 2018 18:31:46 +0200 Subject: [PATCH] Prevent Coverity warning --- gfx/video_driver.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gfx/video_driver.c b/gfx/video_driver.c index 10bb453aa7..bf5dd9b7b7 100644 --- a/gfx/video_driver.c +++ b/gfx/video_driver.c @@ -1420,11 +1420,12 @@ void video_driver_monitor_adjust_system_rates(void) const struct retro_system_timing *info = (const struct retro_system_timing*)&video_driver_av_info.timing; rarch_ctl(RARCH_CTL_UNSET_NONBLOCK_FORCED, NULL); - video_driver_core_hz = info->fps; if (!info || info->fps <= 0.0) return; + video_driver_core_hz = info->fps; + if (video_driver_crt_switching_active) timing_skew = fabs(1.0f - info->fps / video_driver_core_hz); else