mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-01-22 11:04:35 +00:00
Don't hardcode new delay timers in RGUI.
Delay timers are reset in driver.c.
This commit is contained in:
parent
70586d1f66
commit
9a3875d99a
4
driver.c
4
driver.c
@ -361,8 +361,8 @@ 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++)
|
||||
// Readjust timers first before resetting frame count.
|
||||
for (unsigned i = 0; i < ARRAY_SIZE(g_extern.delay_timer); i++)
|
||||
{
|
||||
if (g_extern.delay_timer[i] > g_extern.frame_count)
|
||||
g_extern.delay_timer[i] -= g_extern.frame_count;
|
||||
|
@ -886,12 +886,7 @@ static int rgui_settings_toggle_setting(rgui_handle_t *rgui, unsigned setting, r
|
||||
#ifndef RARCH_PERFORMANCE_MODE
|
||||
case RGUI_SETTINGS_TOGGLE_FULLSCREEN:
|
||||
if (action == RGUI_ACTION_OK)
|
||||
{
|
||||
rarch_set_fullscreen(!g_settings.video.fullscreen);
|
||||
// Delay timers have been reset.
|
||||
g_extern.delay_timer[0] = 15;
|
||||
g_extern.delay_timer[1] = 15;
|
||||
}
|
||||
break;
|
||||
#endif
|
||||
case RGUI_SETTINGS_VIDEO_ROTATION:
|
||||
|
Loading…
x
Reference in New Issue
Block a user