Merge pull request #3072 from rebb/fix-2983-SDL2

Fix CPU cycles being halved when application regains focus in SDL2 while using "priority = ?, pause"
This commit is contained in:
Jonathan Campbell
2021-11-14 15:00:03 +00:00
committed by GitHub

View File

@@ -7893,7 +7893,9 @@ void GFX_Events() {
#endif
SetPriority(sdl.priority.nofocus);
GFX_LosingFocus();
CPU_Enable_SkipAutoAdjust();
if( sdl.priority.nofocus != PRIORITY_LEVEL_PAUSE ) {
CPU_Enable_SkipAutoAdjust();
}
break;
default:
;