mirror of
https://github.com/elasota/Aerofoil.git
synced 2025-09-23 06:53:43 +00:00
Yield to VOS during pause (fixes hang)
This commit is contained in:
@@ -91,6 +91,7 @@ void DoPause (void)
|
||||
do
|
||||
{
|
||||
GetKeys(theKeys);
|
||||
Delay(1, nullptr);
|
||||
}
|
||||
while ((isEscPauseKey && BitTst(theKeys, PL_KEY_SPECIAL(kEscape))) ||
|
||||
(!isEscPauseKey && BitTst(theKeys, PL_KEY_SPECIAL(kTab))));
|
||||
@@ -104,6 +105,8 @@ void DoPause (void)
|
||||
paused = false;
|
||||
else if (BitTst(theKeys, PL_KEY_EITHER_SPECIAL(kControl)))
|
||||
DoCommandKey();
|
||||
|
||||
Delay(1, nullptr);
|
||||
}
|
||||
|
||||
CopyBits((BitMap *)*GetGWorldPixMap(workSrcMap),
|
||||
@@ -113,6 +116,7 @@ void DoPause (void)
|
||||
do
|
||||
{
|
||||
GetKeys(theKeys);
|
||||
Delay(1, nullptr);
|
||||
}
|
||||
while ((isEscPauseKey && BitTst(theKeys, PL_KEY_SPECIAL(kEscape))) ||
|
||||
(!isEscPauseKey && BitTst(theKeys, PL_KEY_SPECIAL(kTab))));
|
||||
|
Reference in New Issue
Block a user