fix this for real

sorry for indentation
This commit is contained in:
freq-mod 2023-03-10 22:54:09 +01:00 committed by GitHub
parent c2761e4f41
commit 9b92b118c6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -4423,9 +4423,14 @@ void FurnaceGUI::drawInsEdit() {
if (ins->n163.wavePos>236) ins->n163.wavePos=236;
}
if (ImGui::InputInt("Length##WAVELEN",&ins->n163.waveLen,4,16)) { PARAMETER
int n163origLen = ins->n163.waveLen;
if (ins->n163.waveLen<0) ins->n163.waveLen=0;
if (ins->n163.waveLen>240) ins->n163.waveLen=240;
ins->n163.waveLen&=0xfc;
if (ins->n163.waveLen > n163origLen) {
ins->n163.waveLen = ((ins->n163.waveLen+3)&~2);
}
else ins->n163.waveLen = (ins->n163.waveLen & (~2));
//ins->n163.waveLen&=0xfc;
}
bool preLoad=ins->n163.waveMode&0x1;