GUI: turn loop position slider into a text field

This commit is contained in:
tildearrow 2022-02-02 04:33:53 -05:00
parent 8354f1a610
commit 84891cc4e5

View file

@ -2055,7 +2055,7 @@ void FurnaceGUI::drawSampleEdit() {
} }
if (doLoop) { if (doLoop) {
ImGui::SameLine(); ImGui::SameLine();
if (ImGui::SliderInt("##LoopPosition",&sample->loopStart,0,sample->length-1)) { if (ImGui::InputInt("##LoopPosition",&sample->loopStart,1,10)) {
if (sample->loopStart<0 || sample->loopStart>=sample->length) { if (sample->loopStart<0 || sample->loopStart>=sample->length) {
sample->loopStart=0; sample->loopStart=0;
} }