Avoid flickering

This commit is contained in:
Marcio T 2021-11-27 09:03:57 -07:00
parent f1e6db038b
commit 74390a77fb
2 changed files with 12 additions and 0 deletions

View File

@ -514,11 +514,22 @@ void SetCartridgeStatusToEAX(long eax) {
long PriorStatus = CartridgeStatus;
CartridgeStatus = eax;
/**************************************************************************
* Added by MLT
*/
// Avoid flickering
static long LastCartridgeStatus = -1;
if (LastCartridgeStatus == CartridgeStatus) {
return;
}
LastCartridgeStatus = CartridgeStatus;
// Disable testing button when no drives present
if (!DriveCount) {
// MLT: Added this check.
SetRichEditText(szASPITrouble);
goto DisableActions;
}
/**************************************************************************/
// Set the text of the "action initiate button"
const char *esi = 0;

View File

@ -512,4 +512,5 @@ void ProcessPendingMessages() {
if (GetNextEvent(everyEvent, &event)) {
DoEvent(event,NULL);
}
SystemTask();
}