Skip to content

Commit

Permalink
Avoid flickering
Browse files Browse the repository at this point in the history
  • Loading branch information
marciot committed Nov 27, 2021
1 parent f1e6db0 commit 74390a7
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
11 changes: 11 additions & 0 deletions mac-cpp-source/tip/tip_aspi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions mac-cpp-source/tip/tip_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -512,4 +512,5 @@ void ProcessPendingMessages() {
if (GetNextEvent(everyEvent, &event)) {
DoEvent(event,NULL);
}
SystemTask();
}

0 comments on commit 74390a7

Please sign in to comment.