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; long PriorStatus = CartridgeStatus;
CartridgeStatus = eax; 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) { if (!DriveCount) {
// MLT: Added this check. // MLT: Added this check.
SetRichEditText(szASPITrouble); SetRichEditText(szASPITrouble);
goto DisableActions; goto DisableActions;
} }
/**************************************************************************/
// Set the text of the "action initiate button" // Set the text of the "action initiate button"
const char *esi = 0; const char *esi = 0;

View File

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