From ae8a185145c7a607f2d73df3c73b3d35c79052ba Mon Sep 17 00:00:00 2001 From: Electric Keet Date: Tue, 12 Dec 2023 15:34:28 -0800 Subject: [PATCH] Reverting some tweaks. --- src/gui/editControls.cpp | 12 ++++++------ src/gui/sampleEdit.cpp | 2 +- src/gui/settings.cpp | 4 ++-- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/gui/editControls.cpp b/src/gui/editControls.cpp index 040bcb2ad..b9b8a7409 100644 --- a/src/gui/editControls.cpp +++ b/src/gui/editControls.cpp @@ -687,7 +687,7 @@ void FurnaceGUI::drawEditControls() { ImGui::Text("Octave"); ImGui::TableNextColumn(); ImGui::SetNextItemWidth(ImGui::GetContentRegionAvail().x); - if (ImGui::InputInt("##Octave",&curOctave,1,3)) { + if (ImGui::InputInt("##Octave",&curOctave,1,1)) { if (curOctave>7) curOctave=7; if (curOctave<-5) curOctave=-5; e->autoNoteOffAll(); @@ -704,7 +704,7 @@ void FurnaceGUI::drawEditControls() { ImGui::Text("Edit Step"); ImGui::TableNextColumn(); ImGui::SetNextItemWidth(ImGui::GetContentRegionAvail().x); - if (ImGui::InputInt("##EditStep",&editStep,1,3)) { + if (ImGui::InputInt("##EditStep",&editStep,1,1)) { if (editStep>=e->curSubSong->patLen) editStep=e->curSubSong->patLen-1; if (editStep<0) editStep=0; @@ -835,7 +835,7 @@ void FurnaceGUI::drawEditControls() { ImGui::Text("Octave"); ImGui::SameLine(); ImGui::SetNextItemWidth(96.0f*dpiScale); - if (ImGui::InputInt("##Octave",&curOctave,1,3)) { + if (ImGui::InputInt("##Octave",&curOctave,1,1)) { if (curOctave>7) curOctave=7; if (curOctave<-5) curOctave=-5; e->autoNoteOffAll(); @@ -850,7 +850,7 @@ void FurnaceGUI::drawEditControls() { ImGui::Text("Edit Step"); ImGui::SameLine(); ImGui::SetNextItemWidth(96.0f*dpiScale); - if (ImGui::InputInt("##EditStep",&editStep,1,3)) { + if (ImGui::InputInt("##EditStep",&editStep,1,1)) { if (editStep>=e->curSubSong->patLen) editStep=e->curSubSong->patLen-1; if (editStep<0) editStep=0; @@ -1094,7 +1094,7 @@ void FurnaceGUI::drawEditControls() { float cursor=ImGui::GetCursorPosX(); float avail=ImGui::GetContentRegionAvail().x; ImGui::SetNextItemWidth(avail); - if (ImGui::InputInt("##Octave",&curOctave,1,3)) { + if (ImGui::InputInt("##Octave",&curOctave,1,1)) { if (curOctave>7) curOctave=7; if (curOctave<-5) curOctave=-5; e->autoNoteOffAll(); @@ -1110,7 +1110,7 @@ void FurnaceGUI::drawEditControls() { ImGui::SameLine(); ImGui::SetCursorPosX(cursor); ImGui::SetNextItemWidth(avail); - if (ImGui::InputInt("##EditStep",&editStep,1,3)) { + if (ImGui::InputInt("##EditStep",&editStep,1,1)) { if (editStep>=e->curSubSong->patLen) editStep=e->curSubSong->patLen-1; if (editStep<0) editStep=0; diff --git a/src/gui/sampleEdit.cpp b/src/gui/sampleEdit.cpp index fea0ef2ba..3ab8fe7a3 100644 --- a/src/gui/sampleEdit.cpp +++ b/src/gui/sampleEdit.cpp @@ -1127,7 +1127,7 @@ void FurnaceGUI::drawSampleEdit() { if (sampleFilterCutStart<0.0) sampleFilterCutStart=0.0; if (sampleFilterCutStart>sample->rate*0.5) sampleFilterCutStart=sample->rate*0.5; } - if (ImGui::InputFloat("To",&sampleFilterCutEnd,1.00f,1000.0f,"%.0f")) { + if (ImGui::InputFloat("To",&sampleFilterCutEnd,10.0f,1000.0f,"%.0f")) { if (sampleFilterCutEnd<0.0) sampleFilterCutEnd=0.0; if (sampleFilterCutEnd>sample->rate*0.5) sampleFilterCutEnd=sample->rate*0.5; } diff --git a/src/gui/settings.cpp b/src/gui/settings.cpp index 415b93959..381c2eb9e 100644 --- a/src/gui/settings.cpp +++ b/src/gui/settings.cpp @@ -444,7 +444,7 @@ void FurnaceGUI::drawSettings() { } pushWarningColor(settings.chanOscThreads>cpuCores,settings.chanOscThreads>(cpuCores*2)); - if (ImGui::InputInt("Per-channel oscilloscope threads",&settings.chanOscThreads,1,4)) { + if (ImGui::InputInt("Per-channel oscilloscope threads",&settings.chanOscThreads)) { if (settings.chanOscThreads<0) settings.chanOscThreads=0; if (settings.chanOscThreads>(cpuCores*3)) settings.chanOscThreads=cpuCores*3; if (settings.chanOscThreads>256) settings.chanOscThreads=256; @@ -1011,7 +1011,7 @@ void FurnaceGUI::drawSettings() { if (renderPoolThreadsB) { pushWarningColor(settings.renderPoolThreads>cpuCores,settings.renderPoolThreads>cpuCores); - if (ImGui::InputInt("Number of threads",&settings.renderPoolThreads,1,4)) { + if (ImGui::InputInt("Number of threads",&settings.renderPoolThreads)) { if (settings.renderPoolThreads<2) settings.renderPoolThreads=2; if (settings.renderPoolThreads>32) settings.renderPoolThreads=32; settingsChanged=true;