command palette: instrument number should be in hex

This commit is contained in:
YohananDiamond 2024-02-05 00:55:34 -03:00
parent 477b331c0e
commit f08ef30cc3

View file

@ -94,7 +94,7 @@ void FurnaceGUI::drawPalette() {
paletteSearchResults.push_back(0);
}
for (int i=0; i<e->song.insLen; i++) {
String s=fmt::sprintf("%02d: %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())) {
paletteSearchResults.push_back(i+1); // because over here ins=0 is 'None'
}