Pump events in sys_sleep()

This allows handling window events while fading etc.
This commit is contained in:
kichikuou
2020-11-29 12:06:17 +09:00
parent f2139440b6
commit 07da17a00e
3 changed files with 7 additions and 8 deletions
+1
View File
@@ -409,6 +409,7 @@ void NACT::wait_after_open_menu()
}
void NACT::sys_sleep(int ms) {
pump_events();
ags->update_screen();
SDL_Delay(ms);
}