Revert "Sample preview has maximum y height relative to x"

This reverts commit 1151db5091.
This commit is contained in:
BlastBrothers 2022-04-11 20:15:03 -04:00
parent 1d14ca2d88
commit af2b19ae62
1 changed files with 1 additions and 7 deletions

View File

@ -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;