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