mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-27 18:20:27 +00:00
adjust delay timers when resetting frame count
This commit is contained in:
parent
0653a8b5c2
commit
73e4adf8dc
9
driver.c
9
driver.c
@ -361,6 +361,15 @@ void init_drivers(void)
|
||||
|
||||
adjust_system_rates();
|
||||
|
||||
// adjust timers first before resetting frame count
|
||||
for (unsigned i = 0; i < sizeof(g_extern.delay_timer) / sizeof(g_extern.delay_timer[0]); i++)
|
||||
{
|
||||
if (g_extern.delay_timer[i] > g_extern.frame_count)
|
||||
g_extern.delay_timer[i] -= g_extern.frame_count;
|
||||
else
|
||||
g_extern.delay_timer[i] = 0;
|
||||
}
|
||||
|
||||
g_extern.frame_count = 0;
|
||||
init_video_input();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user