command palette: whoops!! (hex instrument numbers)

This commit is contained in:
YohananDiamond 2024-02-05 01:20:40 -03:00
parent f08ef30cc3
commit 266a35f885

View file

@ -94,7 +94,7 @@ void FurnaceGUI::drawPalette() {
paletteSearchResults.push_back(0); paletteSearchResults.push_back(0);
} }
for (int i=0; i<e->song.insLen; i++) { for (int i=0; i<e->song.insLen; i++) {
String s=fmt::sprintf("%02x: %s", i, e->song.ins[i]->name.c_str()); String s=fmt::sprintf("%02X: %s", i, e->song.ins[i]->name.c_str());
if (matchFuzzy(s.c_str(),paletteQuery.c_str())) { if (matchFuzzy(s.c_str(),paletteQuery.c_str())) {
paletteSearchResults.push_back(i+1); // because over here ins=0 is 'None' paletteSearchResults.push_back(i+1); // because over here ins=0 is 'None'
} }
@ -166,7 +166,7 @@ void FurnaceGUI::drawPalette() {
if (id==0) { if (id==0) {
s="- None -"; s="- None -";
} else { } else {
s=fmt::sprintf("%02d: %s", id-1, e->song.ins[id-1]->name.c_str()); s=fmt::sprintf("%02X: %s", id-1, e->song.ins[id-1]->name.c_str());
} }
break; break;
case CMDPAL_TYPE_SAMPLES: case CMDPAL_TYPE_SAMPLES: