Mixer: Wide bars/invert box moved to reduce height

This commit is contained in:
BlastBrothers 2022-02-24 17:45:37 -05:00
parent b95e0691a4
commit 101e2c4383
2 changed files with 9 additions and 7 deletions

View file

@ -1556,12 +1556,10 @@ void FurnaceGUI::drawWaveEdit() {
ImGui::PushStyleVar(ImGuiStyleVar_FramePadding,ImVec2(0.0f,0.0f));
//wavetable graph size determined here
ImVec2 contentRegion=ImGui::GetContentRegionAvail();
ImVec2 contentRegion=ImGui::GetContentRegionAvail(); //wavetable graph size determined here
if (ImGui::GetContentRegionAvail().y > (ImGui::GetContentRegionAvail().x / 2.0f)) {
contentRegion=ImVec2(ImGui::GetContentRegionAvail().x,ImGui::GetContentRegionAvail().x / 2.0f);
}
//ImVec2 contentRegion=ImVec2(ImGui::GetContentRegionAvail().x,ImGui::GetContentRegionAvail().x / 2.0f); //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();