NPR: avoid one snprintf
This commit is contained in:
parent
785f32acb3
commit
d90b1a137d
1 changed files with 3 additions and 3 deletions
|
|
@ -1306,11 +1306,11 @@ void FurnaceGUI::drawPatternNew() {
|
|||
}
|
||||
|
||||
// note
|
||||
snprintf(id,63,"%.31s",noteName(pat->newData[row][DIV_PAT_NOTE]));
|
||||
const char* idN=noteName(pat->newData[row][DIV_PAT_NOTE]);
|
||||
if (pat->newData[row][DIV_PAT_NOTE]==-1) {
|
||||
dl->AddText(pos,inactiveColor,id,id+3);
|
||||
dl->AddText(pos,inactiveColor,idN,idN+3);
|
||||
} else {
|
||||
dl->AddText(pos,activeColor,id,id+3);
|
||||
dl->AddText(pos,activeColor,idN,idN+3);
|
||||
}
|
||||
|
||||
// instrument
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue