Skip to content

Commit b7ce2ab

Browse files
committed
Define QUANTUM_LUFS_PREFIX to allow custom prefix labels
Signed-off-by: falkTX <[email protected]>
1 parent 4441834 commit b7ce2ab

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

opengl/Quantum.cpp

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@
2121

2222
#include <cmath>
2323

24+
#ifndef QUANTUM_LUFS_PREFIX
25+
#define QUANTUM_LUFS_PREFIX "LUFS: "
26+
#endif
27+
2428
START_NAMESPACE_DGL
2529

2630
// --------------------------------------------------------------------------------------------------------------------
@@ -2161,11 +2165,11 @@ void QuantumStereoLevelMeterWithLUFS::onNanoDisplay()
21612165
fillColor(enabled ? theme.levelMeterAlternativeColor : theme.textDarkColor.withAlpha(0.5f));
21622166
fill();
21632167

2164-
std::snprintf(valuestr, sizeof(valuestr)-1, "LUFS: %.1f", valueLufs);
2168+
std::snprintf(valuestr, sizeof(valuestr)-1, QUANTUM_LUFS_PREFIX " %.1f", valueLufs);
21652169
}
21662170
else
21672171
{
2168-
std::strncpy(valuestr, "LUFS: -inf", sizeof(valuestr)-1);
2172+
std::strncpy(valuestr, QUANTUM_LUFS_PREFIX "-inf", sizeof(valuestr)-1);
21692173
}
21702174

21712175
fillColor(enabled ? theme.textLightColor : theme.textDarkColor);

0 commit comments

Comments
 (0)