mirror of
https://github.com/joncampbell123/dosbox-x.git
synced 2025-10-17 15:32:30 +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
|
#endif
|
||||||
SetPriority(sdl.priority.nofocus);
|
SetPriority(sdl.priority.nofocus);
|
||||||
GFX_LosingFocus();
|
GFX_LosingFocus();
|
||||||
|
if( sdl.priority.nofocus != PRIORITY_LEVEL_PAUSE ) {
|
||||||
CPU_Enable_SkipAutoAdjust();
|
CPU_Enable_SkipAutoAdjust();
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
;
|
;
|
||||||
|
Reference in New Issue
Block a user