mirror of
https://github.com/tildearrow/furnace.git
synced 2024-11-27 06:53:01 +00:00
parent
c33d587622
commit
0db4dc0179
1 changed files with 1 additions and 6 deletions
|
@ -4423,14 +4423,9 @@ 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;
|
||||
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;
|
||||
ins->n163.waveLen&=0xfc;
|
||||
}
|
||||
|
||||
bool preLoad=ins->n163.waveMode&0x1;
|
||||
|
|
Loading…
Reference in a new issue