From 9f69e5e20495778137b43d4a7b14c627245553c4 Mon Sep 17 00:00:00 2001 From: BlastBrothers Date: Wed, 23 Feb 2022 14:25:06 -0500 Subject: [PATCH] Wavetable text input now spans the whole width --- src/gui/insEdit.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gui/insEdit.cpp b/src/gui/insEdit.cpp index 1387fafd..cadf209e 100644 --- a/src/gui/insEdit.cpp +++ b/src/gui/insEdit.cpp @@ -1546,7 +1546,7 @@ void FurnaceGUI::drawWaveEdit() { wavePreview[i]=wave->data[i]; } if (wave->len>0) wavePreview[wave->len]=wave->data[wave->len-1]; - + ImGui::SetNextItemWidth(ImGui::GetContentRegionAvail().x); //wavetable text input size found here if (ImGui::InputText("##MMLWave",&mmlStringW)) { decodeMMLStrW(mmlStringW,wave->data,wave->len,wave->max); } @@ -1555,7 +1555,7 @@ void FurnaceGUI::drawWaveEdit() { } ImGui::PushStyleVar(ImGuiStyleVar_FramePadding,ImVec2(0.0f,0.0f)); - ImVec2 contentRegion=ImGui::GetContentRegionAvail(); + ImVec2 contentRegion=ImGui::GetContentRegionAvail(); //wavetable graph size determined here PlotNoLerp("##Waveform",wavePreview,wave->len+1,0,NULL,0,wave->max,contentRegion); if (ImGui::IsItemClicked(ImGuiMouseButton_Left)) { waveDragStart=ImGui::GetItemRectMin();