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