mirror of
https://github.com/tildearrow/furnace.git
synced 2024-12-29 02:51:24 +00:00
GUI: turn loop position slider into a text field
This commit is contained in:
parent
8354f1a610
commit
84891cc4e5
1 changed files with 1 additions and 1 deletions
|
@ -2055,7 +2055,7 @@ void FurnaceGUI::drawSampleEdit() {
|
|||
}
|
||||
if (doLoop) {
|
||||
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) {
|
||||
sample->loopStart=0;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue