Skip to content
Snippets Groups Projects
Commit 1fe1adc1 authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

Don't fiddle with the status bar fonts if we're not going to update it.

parent 065c06e0
Branches
Tags
No related merge requests found
Pipeline #7683 passed
......@@ -344,6 +344,17 @@ update_status(struct bbslist *bbs, int speed, int ooii_mode, bool ata_inv)
if (term.nostatus)
return;
now = time(NULL);
newmouse = ((ms->mode == MM_OFF) ? 1 : 0) | (ms->flags & MS_FLAGS_DISABLED);
if (rip_did_reinit) {
rip_did_reinit = false;
}
else {
if ((now == lastupd) && (speed == oldspeed) && (newmouse == lastmouse)) {
return;
}
}
oldfont_norm = getfont(1);
oldfont_bright = getfont(2);
setfont(0, false, 1);
......@@ -364,18 +375,6 @@ update_status(struct bbslist *bbs, int speed, int ooii_mode, bool ata_inv)
default:
sep = '|';
}
now = time(NULL);
newmouse = ((ms->mode == MM_OFF) ? 1 : 0) | (ms->flags & MS_FLAGS_DISABLED);
if (rip_did_reinit) {
rip_did_reinit = false;
}
else {
if ((now == lastupd) && (speed == oldspeed) && (newmouse == lastmouse)) {
setfont(oldfont_norm, 0, 1);
setfont(oldfont_bright, 0, 2);
return;
}
}
lastupd = now;
lastmouse = newmouse;
oldspeed = speed;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment