GUI: lazily remove waveform from OPM ins editor

needs improvement
This commit is contained in:
tildearrow 2024-07-06 19:21:32 -05:00
parent 1df13af4af
commit f09c30a383

View file

@ -4149,7 +4149,7 @@ void FurnaceGUI::insTabFM(DivInstrument* ins) {
ImGui::TableNextColumn(); ImGui::TableNextColumn();
if (ins->type==DIV_INS_FM) { if (ins->type==DIV_INS_FM) {
ImGui::Text(_("SSG-EG")); ImGui::Text(_("SSG-EG"));
} else { } else if (ins->type!=DIV_INS_OPM) {
ImGui::Text(_("Waveform")); ImGui::Text(_("Waveform"));
} }
ImGui::TableNextColumn(); ImGui::TableNextColumn();
@ -4275,8 +4275,6 @@ void FurnaceGUI::insTabFM(DivInstrument* ins) {
break; break;
} }
case DIV_INS_OPM: { case DIV_INS_OPM: {
drawWaveform(0,true,ImVec2(waveWidth,waveHeight));
// params // params
ImGui::Separator(); ImGui::Separator();
ImGui::SetNextItemWidth(ImGui::GetContentRegionAvail().x); ImGui::SetNextItemWidth(ImGui::GetContentRegionAvail().x);