mirror of
https://github.com/joncampbell123/dosbox-x.git
synced 2025-10-14 02:17:36 +08:00
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:
@@ -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:
|
||||
;
|
||||
|
Reference in New Issue
Block a user