From e8a173f17dff244c5847c780f6517681d5372237 Mon Sep 17 00:00:00 2001 From: Dalia Date: Thu, 28 Nov 2024 21:42:06 -0700 Subject: [PATCH] mark song as modified when wt params edited --- src/gui/insEdit.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/gui/insEdit.cpp b/src/gui/insEdit.cpp index 49e305b97..1879d7fd9 100644 --- a/src/gui/insEdit.cpp +++ b/src/gui/insEdit.cpp @@ -3099,7 +3099,7 @@ void FurnaceGUI::insTabWavetable(DivInstrument* ins) ImGui::Text(_("Single-waveform")); ImGui::Indent(); for (int i=0; iws.effect=i; wavePreviewInit=true; } @@ -3108,7 +3108,7 @@ void FurnaceGUI::insTabWavetable(DivInstrument* ins) ImGui::Text(_("Dual-waveform")); ImGui::Indent(); for (int i=129; iws.effect=i; wavePreviewInit=true; } @@ -3191,7 +3191,7 @@ void FurnaceGUI::insTabWavetable(DivInstrument* ins) } ImGui::SameLine(); ImGui::SetNextItemWidth(ImGui::GetContentRegionAvail().x); - if (ImGui::InputInt("##SelWave1",&ins->ws.wave1,1,4)) { + if (ImGui::InputInt("##SelWave1",&ins->ws.wave1,1,4)) { PARAMETER if (ins->ws.wave1<0) ins->ws.wave1=0; if (ins->ws.wave1>=(int)e->song.wave.size()) ins->ws.wave1=e->song.wave.size()-1; wavePreviewInit=true; @@ -3207,7 +3207,7 @@ void FurnaceGUI::insTabWavetable(DivInstrument* ins) ImGui::Text(_("Wave 2")); ImGui::SameLine(); ImGui::SetNextItemWidth(ImGui::GetContentRegionAvail().x); - if (ImGui::InputInt("##SelWave2",&ins->ws.wave2,1,4)) { + if (ImGui::InputInt("##SelWave2",&ins->ws.wave2,1,4)) { PARAMETER if (ins->ws.wave2<0) ins->ws.wave2=0; if (ins->ws.wave2>=(int)e->song.wave.size()) ins->ws.wave2=e->song.wave.size()-1; wavePreviewInit=true; @@ -3256,28 +3256,28 @@ void FurnaceGUI::insTabWavetable(DivInstrument* ins) ImGui::EndTable(); } - if (ImGui::InputScalar(_("Update Rate"),ImGuiDataType_U8,&ins->ws.rateDivider,&_ONE,&_EIGHT)) { + if (ImGui::InputScalar(_("Update Rate"),ImGuiDataType_U8,&ins->ws.rateDivider,&_ONE,&_EIGHT)) { PARAMETER wavePreviewInit=true; } int speed=ins->ws.speed+1; - if (ImGui::InputInt(_("Speed"),&speed,1,8)) { + if (ImGui::InputInt(_("Speed"),&speed,1,8)) { PARAMETER if (speed<1) speed=1; if (speed>256) speed=256; ins->ws.speed=speed-1; wavePreviewInit=true; } - if (ImGui::InputScalar(_("Amount"),ImGuiDataType_U8,&ins->ws.param1,&_ONE,&_EIGHT)) { + if (ImGui::InputScalar(_("Amount"),ImGuiDataType_U8,&ins->ws.param1,&_ONE,&_EIGHT)) { PARAMETER wavePreviewInit=true; } if (ins->ws.effect==DIV_WS_PHASE_MOD) { - if (ImGui::InputScalar(_("Power"),ImGuiDataType_U8,&ins->ws.param2,&_ONE,&_EIGHT)) { + if (ImGui::InputScalar(_("Power"),ImGuiDataType_U8,&ins->ws.param2,&_ONE,&_EIGHT)) { PARAMETER wavePreviewInit=true; } } - if (ImGui::Checkbox(_("Global"),&ins->ws.global)) { + if (ImGui::Checkbox(_("Global"),&ins->ws.global)) { PARAMETER wavePreviewInit=true; } } else {