mirror of
https://github.com/marciot/mac-tip.git
synced 2024-12-27 05:32:27 +00:00
Avoid flickering
This commit is contained in:
parent
f1e6db038b
commit
74390a77fb
@ -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;
|
||||
|
@ -512,4 +512,5 @@ void ProcessPendingMessages() {
|
||||
if (GetNextEvent(everyEvent, &event)) {
|
||||
DoEvent(event,NULL);
|
||||
}
|
||||
SystemTask();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user