GUI: set size constraints for wave editor

This commit is contained in:
tildearrow 2022-01-21 02:06:49 -05:00
parent 9307a14a1d
commit 3b5370681a

View file

@ -1250,6 +1250,7 @@ void FurnaceGUI::drawWaveList() {
void FurnaceGUI::drawWaveEdit() { void FurnaceGUI::drawWaveEdit() {
if (!waveEditOpen) return; if (!waveEditOpen) return;
float wavePreview[256]; float wavePreview[256];
ImGui::SetNextWindowSizeConstraints(ImVec2(450.0f*dpiScale,300.0f*dpiScale),ImVec2(scrW*dpiScale,scrH*dpiScale));
if (ImGui::Begin("Wavetable Editor",&waveEditOpen,ImGuiWindowFlags_NoDocking)) { if (ImGui::Begin("Wavetable Editor",&waveEditOpen,ImGuiWindowFlags_NoDocking)) {
if (curWave<0 || curWave>=(int)e->song.wave.size()) { if (curWave<0 || curWave>=(int)e->song.wave.size()) {
ImGui::Text("no wavetable selected"); ImGui::Text("no wavetable selected");