fix sample map sample number clamping
potentially
This commit is contained in:
parent
18e62322dd
commit
3de64c3c37
1 changed files with 2 additions and 2 deletions
|
|
@ -3593,10 +3593,10 @@ void FurnaceGUI::insTabSample(DivInstrument* ins) {
|
|||
ImGui::Text("%s",noteNames[60+i]);
|
||||
ImGui::TableNextColumn();
|
||||
if (sampleMap.map<0 || sampleMap.map>=e->song.sampleLen) {
|
||||
sName=fmt::sprintf("---##SM%d",i);
|
||||
sName=fmt::sprintf("-----##SM%d",i);
|
||||
sampleMap.map=-1;
|
||||
} else {
|
||||
sName=fmt::sprintf("%3d##SM%d",sampleMap.map,i);
|
||||
sName=fmt::sprintf("%5d##SM%d",sampleMap.map,i);
|
||||
}
|
||||
ImGui::PushFont(patFont);
|
||||
ImGui::AlignTextToFramePadding();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue