mirror of
https://github.com/libretro/RetroArch
synced 2025-04-25 09:02:44 +00:00
Prevent Coverity warning
This commit is contained in:
parent
359de5c84b
commit
dc7c4fea2d
@ -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;
|
const struct retro_system_timing *info = (const struct retro_system_timing*)&video_driver_av_info.timing;
|
||||||
|
|
||||||
rarch_ctl(RARCH_CTL_UNSET_NONBLOCK_FORCED, NULL);
|
rarch_ctl(RARCH_CTL_UNSET_NONBLOCK_FORCED, NULL);
|
||||||
video_driver_core_hz = info->fps;
|
|
||||||
|
|
||||||
if (!info || info->fps <= 0.0)
|
if (!info || info->fps <= 0.0)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
video_driver_core_hz = info->fps;
|
||||||
|
|
||||||
if (video_driver_crt_switching_active)
|
if (video_driver_crt_switching_active)
|
||||||
timing_skew = fabs(1.0f - info->fps / video_driver_core_hz);
|
timing_skew = fabs(1.0f - info->fps / video_driver_core_hz);
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user