From 969d673e0ec831b5922ba319d94434345e6565e5 Mon Sep 17 00:00:00 2001 From: tildearrow Date: Mon, 20 Dec 2021 17:03:55 -0500 Subject: [PATCH] allow changing song length --- src/gui/gui.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/gui/gui.cpp b/src/gui/gui.cpp index b5a92b037..25cba3721 100644 --- a/src/gui/gui.cpp +++ b/src/gui/gui.cpp @@ -319,6 +319,16 @@ void FurnaceGUI::drawSongInfo() { e->song.patLen=patLen; } + ImGui::Text("Song Length"); + ImGui::SameLine(); + ImGui::SetNextItemWidth(120.0f*dpiScale); + int ordLen=e->song.ordersLen; + if (ImGui::InputInt("##OrdLength",&ordLen,1,3)) { + if (ordLen<1) ordLen=1; + if (ordLen>127) ordLen=127; + e->song.ordersLen=ordLen; + } + ImGui::Text("Rate"); ImGui::SameLine(); ImGui::SetNextItemWidth(120.0f*dpiScale);