From af2b19ae622e7a5fff8fd4bd3640a17dc391a8dd Mon Sep 17 00:00:00 2001 From: BlastBrothers Date: Mon, 11 Apr 2022 20:15:03 -0400 Subject: [PATCH] Revert "Sample preview has maximum y height relative to x" This reverts commit 1151db50912cb17491937e84459454fbb369576f. --- src/gui/sampleEdit.cpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/gui/sampleEdit.cpp b/src/gui/sampleEdit.cpp index a4c744b1..bbd94681 100644 --- a/src/gui/sampleEdit.cpp +++ b/src/gui/sampleEdit.cpp @@ -564,14 +564,8 @@ void FurnaceGUI::drawSampleEdit() { ImGui::Separator(); - ImVec2 avail=ImGui::GetContentRegionAvail(); // graph size determined here - if (ImGui::GetContentRegionAvail().y > (ImGui::GetContentRegionAvail().x / 2.0f)) { - avail=ImVec2(ImGui::GetContentRegionAvail().x,ImGui::GetContentRegionAvail().x / 2.0f); - } + ImVec2 avail=ImGui::GetContentRegionAvail(); avail.y-=ImGui::GetFontSize()+ImGui::GetStyle().ItemSpacing.y+ImGui::GetStyle().ScrollbarSize; - if (avail.y < 1.0){ //Prevents crash - avail.y = 1.0; - } int availX=avail.x; int availY=avail.y;