GUI: insEdit code style

This commit is contained in:
tildearrow 2024-01-16 17:09:26 -05:00
parent 0acd62f4d5
commit 6e5a25d824

View file

@ -3612,13 +3612,18 @@ void FurnaceGUI::drawInsEdit() {
mod=false; mod=false;
} else if (ins->type==DIV_INS_ESFM) { } else if (ins->type==DIV_INS_ESFM) {
// this is the same as the KVS heuristic in platform/esfm.h // this is the same as the KVS heuristic in platform/esfm.h
if (opE.outLvl==7) mod=false; if (opE.outLvl==7) {
else if (opE.outLvl>0) { mod=false;
if (i==3) mod=false; } else if (opE.outLvl>0) {
else { if (i==3) {
mod=false;
} else {
DivInstrumentESFM::Operator& opENext=ins->esfm.op[i+1]; DivInstrumentESFM::Operator& opENext=ins->esfm.op[i+1];
if (opENext.modIn==0) mod=false; if (opENext.modIn==0) {
else if ((opE.outLvl-opENext.modIn)>=2) mod=false; mod=false;
} else if ((opE.outLvl-opENext.modIn)>=2) {
mod=false;
}
} }
} }
} else if (opCount==4) { } else if (opCount==4) {
@ -4781,13 +4786,18 @@ void FurnaceGUI::drawInsEdit() {
mod=false; mod=false;
} else if (ins->type==DIV_INS_ESFM) { } else if (ins->type==DIV_INS_ESFM) {
// this is the same as the KVS heuristic in platform/esfm.h // this is the same as the KVS heuristic in platform/esfm.h
if (opE.outLvl==7) mod=false; if (opE.outLvl==7) {
else if (opE.outLvl>0) { mod=false;
if (i==3) mod=false; } else if (opE.outLvl>0) {
else { if (i==3) {
mod=false;
} else {
DivInstrumentESFM::Operator& opENext=ins->esfm.op[i+1]; DivInstrumentESFM::Operator& opENext=ins->esfm.op[i+1];
if (opENext.modIn==0) mod=false; if (opENext.modIn==0) {
else if ((opE.outLvl-opENext.modIn)>=2) mod=false; mod=false;
} else if ((opE.outLvl-opENext.modIn)>=2) {
mod=false;
}
} }
} }
} else if (opCount==4) { } else if (opCount==4) {