mirror of
https://github.com/tildearrow/furnace.git
synced 2024-11-16 17:45:10 +00:00
GUI: fix moving GB HW seq step down
This commit is contained in:
parent
55d12e1ada
commit
4e7eb728db
1 changed files with 6 additions and 6 deletions
|
@ -3178,13 +3178,13 @@ void FurnaceGUI::drawInsEdit() {
|
||||||
if (ImGui::Button(ICON_FA_CHEVRON_DOWN "##HWCmdDown")) {
|
if (ImGui::Button(ICON_FA_CHEVRON_DOWN "##HWCmdDown")) {
|
||||||
if (i<ins->gb.hwSeqLen-1) {
|
if (i<ins->gb.hwSeqLen-1) {
|
||||||
e->lockEngine([ins,i]() {
|
e->lockEngine([ins,i]() {
|
||||||
ins->gb.hwSeq[i-1].cmd^=ins->gb.hwSeq[i].cmd;
|
ins->gb.hwSeq[i+1].cmd^=ins->gb.hwSeq[i].cmd;
|
||||||
ins->gb.hwSeq[i].cmd^=ins->gb.hwSeq[i-1].cmd;
|
ins->gb.hwSeq[i].cmd^=ins->gb.hwSeq[i+1].cmd;
|
||||||
ins->gb.hwSeq[i-1].cmd^=ins->gb.hwSeq[i].cmd;
|
ins->gb.hwSeq[i+1].cmd^=ins->gb.hwSeq[i].cmd;
|
||||||
|
|
||||||
ins->gb.hwSeq[i-1].data^=ins->gb.hwSeq[i].data;
|
ins->gb.hwSeq[i+1].data^=ins->gb.hwSeq[i].data;
|
||||||
ins->gb.hwSeq[i].data^=ins->gb.hwSeq[i-1].data;
|
ins->gb.hwSeq[i].data^=ins->gb.hwSeq[i+1].data;
|
||||||
ins->gb.hwSeq[i-1].data^=ins->gb.hwSeq[i].data;
|
ins->gb.hwSeq[i+1].data^=ins->gb.hwSeq[i].data;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
MARK_MODIFIED;
|
MARK_MODIFIED;
|
||||||
|
|
Loading…
Reference in a new issue