From 3a0549a480153853cd93f0405af9278a8e1f7154 Mon Sep 17 00:00:00 2001 From: Eknous-P Date: Sat, 19 Oct 2024 00:31:48 +0400 Subject: [PATCH] find/replace: dont show octave on note combo preview ugh please --- src/gui/findReplace.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gui/findReplace.cpp b/src/gui/findReplace.cpp index 966636b91..7a7492317 100644 --- a/src/gui/findReplace.cpp +++ b/src/gui/findReplace.cpp @@ -615,7 +615,7 @@ void FurnaceGUI::drawFindReplace() { } else if (i.note==128) { snprintf(tempID,1024,"%s##NOFF",noteOffLabel); } else if (i.note>=-60 && i.note<120) { - snprintf(tempID,1024,"%s",noteNames[i.note+60]); + snprintf(tempID,1024,"%c%c",noteNames[i.note+60][0],(noteNames[i.note+60][1]=='-')?' ':noteNames[i.note+60][1]); } else { snprintf(tempID,1024,"???"); i.note=0; @@ -664,7 +664,7 @@ void FurnaceGUI::drawFindReplace() { i.noteMax=0; } if (i.noteMax>=-60 && i.noteMax<120) { - snprintf(tempID,1024,"%s",noteNames[i.noteMax+60]); + snprintf(tempID,1024,"%c%c",noteNames[i.noteMax+60][0],(noteNames[i.noteMax+60][1]=='-')?' ':noteNames[i.noteMax+60][1]); } else { snprintf(tempID,1024,"???"); } @@ -907,7 +907,7 @@ void FurnaceGUI::drawFindReplace() { } else if (queryReplaceNote==128) { snprintf(tempID,1024,"%s##NOFF",noteOffLabel); } else if (queryReplaceNote>=-60 && queryReplaceNote<120) { - snprintf(tempID,1024,"%s",noteNames[queryReplaceNote+60]); + snprintf(tempID,1024,"%c%c",noteNames[queryReplaceNote+60][0],(noteNames[queryReplaceNote+60][1]=='-')?' ':noteNames[queryReplaceNote+60][1]); } else { snprintf(tempID,1024,"???"); queryReplaceNote=0;