Fix CPU cycles being halved when application regains focus in SDL2 while using "priority = ?, pause". This was only fixed in the SDL1 build before

This commit is contained in:
rebb
2021-11-13 10:33:40 +01:00
parent 278c40cdee
commit 11a59cea4e

View File

@@ -7881,7 +7881,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:
;