Skip to content

Commit

Permalink
command palette: whoops!! (hex instrument numbers)
Browse files Browse the repository at this point in the history
  • Loading branch information
yohannd1 committed Feb 5, 2024
1 parent f08ef30 commit 266a35f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gui/commandPalette.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ void FurnaceGUI::drawPalette() {
paletteSearchResults.push_back(0);
}
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())) {
paletteSearchResults.push_back(i+1); // because over here ins=0 is 'None'
}
Expand Down Expand Up @@ -166,7 +166,7 @@ void FurnaceGUI::drawPalette() {
if (id==0) {
s="- None -";
} 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;
case CMDPAL_TYPE_SAMPLES:
Expand Down

0 comments on commit 266a35f

Please sign in to comment.