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